public void Cook() { Potato potato = this.GetPotato(); Carrot carrot = this.GetCarrot(); Vegetable peeledPotato = Vegetable.Peel(potato); Vegetable peeledCarrot = Vegetable.Peel(carrot); Vegetable cutPotato = this.Cut(potato); Vegetable cutCarrot = this.Cut(carrot); Bowl bowl = this.GetBowl(); bowl.Add(cutPotato); bowl.Add(cutCarrot); }
private void Peel(Vegetable vegetable) { // .. vegetable.Peel(); }
private void Peel(Vegetable vegetable) { vegetable.Peel(); }
private void Peel(Vegetable vegetableToPeel) { // .. vegetableToPeel.Peel(); }
private void Peel(Vegetable potato) { potato.Peel(); }
private void Peel(Vegetable vegetableToPeel) { // .. vegetableToPeel.Peel(); }