Ejemplo n.º 1
0
 public void Add(Vegetable vegetable)
 {
     this.vegetables.Add(vegetable);
     Console.WriteLine("Vegetable {0} added to the bowl.", vegetable);
 }
Ejemplo n.º 2
0
 public void Cut(Vegetable vegetable)
 {
     Console.WriteLine("The {0} has been cut.", vegetable);
 }       
Ejemplo n.º 3
0
 private static void Cook(Vegetable vegetable)
 {
     Console.WriteLine("Vegetable {0} is being cooked.", vegetable);
 }
Ejemplo n.º 4
0
 public void Peel(Vegetable vegetable)
 {
     vegetable.HasBeenPeeled = true;
     Console.WriteLine("Vegetable {0} has been peeled.", vegetable);
 }