public override void Eat(Herbivore h) { // Eat Bison Debug.Log(this.GetType().Name + " eats " + h.GetType().Name); }
// Constructor public AnimalWorld(ContinentFactory factory) { _botany = factory.CreateBotany(); _carnivore = factory.CreateCarnivore(); _herbivore = factory.CreateHerbivore(); }
public abstract void Eat(Herbivore h);