public AnimalWorld(ContinetFactory factory)
 {
     herbivore = factory.CreateHerbivore();
     carnivore = factory.CreateCarnivore();
 }
 public AnimalWorld(ContinetFactory factory)
 {
     herbivore = factory.CreateHerbivore();
     carnivore = factory.CreateCarnivore();
 }