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