Esempio n. 1
0
 /// <summary>
 /// Runs the foodchain, that is, carnivores are eating herbivores.
 /// </summary>
 public void RunFoodChain()
 {
     _carnivore.Eat(_herbivore);
 }
Esempio n. 2
0
 public string RunFoodChain()
 {
     return(carnivore.Eat(herbivore));
 }