public AnimalWorld(ContinentFactory factory)
 {
     _herbivorse = factory.CreateHerbivores();
     _carnivorse = factory.CreateCarnivores();
 }
 public override void Eats(Herbivorse herbivorse)
 {
     Console.WriteLine("Lion eats "+herbivorse.ToString());
 }
 public override void Eats(Herbivorse herbivorse)
 {
     Console.WriteLine(this.GetType() + " eats " + herbivorse.ToString());
 }
 public abstract void Eats(Herbivorse herbivorse);