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