// Constructor public AnimalWorld(ContinentFactory factory) { _botany = factory.CreateBotany(); _carnivore = factory.CreateCarnivore(); _herbivore = factory.CreateHerbivore(); }
// Constructor public AnimalWorld(ContinentFactory factory) { _botany = factory.CreateBotany(); _carnivore = factory.CreateCarnivore(); _herbivore = factory.CreateHerbivore(); }