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