Example #1
0
 // constructor
 public Warcraft(ContinentFactory factory)
 {
     _alliance = factory.CreateHero();
     _horde    = factory.CreateVillain();
 }
        // Constructor

        public AnimalWorld(ContinentFactory factory)
        {
            _carnivore = factory.CreateCarnivore();
            _herbivore = factory.CreateHerbivore();
        }