public void Cook() { Potato potato = GetPotato(); Peel(potato); Cut(potato); Bowl bowl = GetBowl(); bowl.Add(potato); Carrot carrot = GetCarrot(); Peel(carrot); Cut(carrot); bowl.Add(carrot); }
public void Cook() { Potato potato = this.GetPotato(); Carrot carrot = this.GetCarrot(); Bowl bowl = new Bowl(); this.Peel(potato); this.Peel(carrot); bowl = this.GetBowl(); this.Cut(potato); this.Cut(carrot); bowl.Add(carrot); bowl.Add(potato); Console.WriteLine("Soup is ready!"); }