public void Cook(IVegetable vegitable) { Potato potato = this.GetPotato(); Carrot carrot = this.GetCarrot(); this.Peel(potato); this.Peel(carrot); this.Cut(potato); this.Cut(carrot); Bowl bowl; bowl = this.GetBowl(); bowl.Add(carrot); bowl.Add(potato); }
private Carrot GetCarrot() { Carrot carrot = new Carrot(); return(carrot); }