public abstract void Eat(Herbibore herbibore);
public override void Eat(Herbibore herbibore) { Console.WriteLine($"{this.GetType().Name} eats {herbibore.GetType().Name}"); }
public Ecosystem(ContinentFactory factory) { _herbibore = factory.CreateHerbivore(); _carnivore = factory.CreateCarnivore(); }