예제 #1
0
        static void Main(string[] args)
        {
            AbstractFactory.AbstractFactory abstractFactoryHuman = new HumanFactory();
            abstractFactoryHuman.CreateArmy();
            abstractFactoryHuman.CreateRace();
            abstractFactoryHuman.CreateResource();



            AbstractFactory.AbstractFactory abstractFactoryUndead = new UndeadFactory();
            abstractFactoryUndead.CreateArmy();
            abstractFactoryUndead.CreateRace();
            abstractFactoryUndead.CreateResource();
        }