public AnimalWorld(ContinentFactory factory) { this.herbivore = factory.CreateHerbivore(); this.carnivore = factory.CreateCarnivore(); }
public Ecosystem(ContinentFactory factory) { _herbivore = factory.CreateHerbivore(); _carnivore = factory.CreateCarnivore(); }