public static void FoodChain(Plant plant, Herbivore herbivore, Carnivore carnivore)
 {
     Console.WriteLine("Food Chain:");
     herbivore.Eat(plant);
     carnivore.Eat(herbivore);
 }
Exemple #2
0
 public void Eat(Herbivore h)
 {
     Console.WriteLine(this.GetCarnivoreRace() + " eats " + h.GetHerbivoreRace());
 }