// Constructor public AnimalWorld(ContinentFactory factory) { _carnivore = factory.CreateCarnivore(); _herbivore = factory.CreateHerbivore(); }
public override void Eat(Carnivore h) { // Eat Bison Console.WriteLine(this.GetType().Name + " eats " + h.GetType().Name); }
public abstract void Eat(Carnivore a);