示例#1
0
        // Constructor

        public AnimalWorld(ContinentFactory factory)
        {
            _carnivore = factory.CreateCarnivore();
            _herbivore = factory.CreateHerbivore();
        }
示例#2
0
 // Constructor
 public AnimalWorld(ContinentFactory factory)
 {
     _carnivore = factory.CreateCarnivore();
     _herbivore = factory.CreateHerbivore();
 }
 public void ChangeFactory(ContinentFactory _factory)
 {
     _herbivore  = _factory.CreateHerbivore();
     _carnbivore = _factory.CreateCarnbivore();
 }
 public AnimaWorld(ContinentFactory _factory)
 {
     _herbivore  = _factory.CreateHerbivore();
     _carnbivore = _factory.CreateCarnbivore();
 }
示例#5
0
 public AnimalWord(ContinentFactory factory)
 {
     _travoyadnie = factory.CreateTravoyadnie();
     _plotoyadnie = factory.CreatePlotoyadnie();
 }
示例#6
0
 public AnimalWorld(ContinentFactory p_factory)
 {
     m_carnivore = p_factory.CreateCarnivore();
     m_herbivore = p_factory.CreateHerbivore();
 }