// Constructor public AnimalWorld(ContinentFactory factory) { _carnivore = factory.CreateCarnivore(); _herbivore = factory.CreateHerbivore(); }
public AnimaWorld(ContinentFactory _factory) { _herbivore = _factory.CreateHerbivore(); _carnbivore = _factory.CreateCarnbivore(); }
public void ChangeFactory(ContinentFactory _factory) { _herbivore = _factory.CreateHerbivore(); _carnbivore = _factory.CreateCarnbivore(); }
public AnimalWorld(ContinentFactory p_factory) { m_carnivore = p_factory.CreateCarnivore(); m_herbivore = p_factory.CreateHerbivore(); }