Beispiel #1
0
        public void UsageMethod()
        {
            IAbstractFactoryBase factory1 = new ConcreteFactory1();
            ClientClass          client1  = new ClientClass(factory1);

            client1.Run();
            IAbstractFactoryBase factory2 = new ConcreteFactory2();
            ClientClass          client2  = new ClientClass(factory2);

            client2.Run();
        }
 public void UsageMethod()
 {
     IAbstractFactoryBase factory1 = new ConcreteFactory1();
     ClientClass client1 = new ClientClass(factory1);
     client1.Run();
     IAbstractFactoryBase factory2 = new ConcreteFactory2();
     ClientClass client2 = new ClientClass(factory2);
     client2.Run();
 }