Esempio n. 1
0
 // Constructor 
 public Client(AbstractFactory factory)
 {
     AbstractProductB = factory.CreateProductB();
     AbstractProductA = factory.CreateProductA();
 }
Esempio n. 2
0
 // Constructor
 public Client(AbstractFactory factory)
 {
     AbstractProductB = factory.CreateProductB();
     AbstractProductA = factory.CreateProductA();
 }