Esempio n. 1
0
                // Constructor

                public Client(AbstractFactory factory)
                {
                    _abstractProductB = factory.CreateProductB();
                    _abstractProductA = factory.CreateProductA();
                }
Esempio n. 2
0
 public Client(AbstractFactory abs)
 {
     productA = abs.CreateProductA();
     productB = abs.CreateProductB();
 }