//constructor public AnimalWorld(ContinentFactory factory) { _abstractHerbivore = factory.CreateHerbivore(); _abstractCarnivore = factory.CreateCarnivore(); }
// Constructor public AnimalWorld(ContinentFactory factory) { _carnivore = factory.CreateCarnivore(); _herbivore = factory.CreateHerbivore(); }
public AnimalWorld(ContinentFactory continentFactory) { this._carnivore = continentFactory.CreateCarnivore(); this._herbivore = continentFactory.CreateHerbivore(); }
// Constructor. public AnimalWorld(ContinentFactory factory) { this.carnivore = factory.CreateCarnivore(); this.herbivore = factory.CreateHerbivore(); }
public AnimalWorld(ContinentFactory continent) { _herbivore = continent.CreateHerbivore(); _carnivore = continent.CreateCarnivore(); }
private Carnivore _carnivore; // создаем переменную типа ХИЩНИК // Constructor public AnimalWorld(ContinentFactory factory) { _carnivore = factory.CreateCarnivore(); // идем на завод и создаем хищника _herbivore = factory.CreateHerbivore(); // идем на завод и создаем травоядное }
// Constructor public AnimalWorld(ContinentFactory factory) { m_carnivore = factory.CreateCarnivore(); m_herbivore = factory.CreateHerbivore(); }
public Animals(ContinentFactory continentFactory) { _herbivore = continentFactory.CreateHerbivore(); _carnivore = continentFactory.CreateCarnivore(); }