public AnimalWorld(ContinentFactory factory)
 {
     _carnivore = factory.CreateCarnivore();
     _herbivore = factory.CreateHerbivore();
 }
Exemple #2
0
 public AnimalWorld(ContinentFactory factory)
 {
     land    = factory.CreateLand();
     aquatic = factory.CreateAquatic();
     air     = factory.CreateAir();
 }