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