Example #1
0
 // Constructor
 public AnimalWorld(ContinentFactory factory)
 {
     _carnivore = factory.CreateCarnivore();
     _herbivore = factory.CreateHerbivore();
 }
Example #2
0
        // Constructor

        public AnimalWorld(ContinentFactory factory)
        {
            _carnivore = factory.CreateCarnivore();
            _herbivore = factory.CreateHerbivore();
        }
Example #3
0
 public AnimalWorld(ContitentFactory factory)
 {
     _herbivore     = factory.CreateHerbivore();
     _carnivore     = factory.CreateCarnivore();
     _superPredator = factory.CreateSuperPredator();
 }
Example #4
0
 public void NutritionCarnivores(Carnivore carnivore, Herbivore herbivore)
 {
     carnivore.Eat(herbivore);
 }
Example #5
0
 public AnimalWorld(ContinentFactory p_factory)
 {
     m_carnivore = p_factory.CreateCarnivore();
     m_herbivore = p_factory.CreateHerbivore();
 }