Example #1
0
 // Constructor
 public Client(AbstractFactory factory)
 {
     abstractProductB = factory.CreateProductB();
     abstractProductA = factory.CreateProductA();
 }
Example #2
0
 // Constructor
 public Client(AbstractFactory factory)
 {
     abstractProductB = factory.CreateProductB();
     abstractProductA = factory.CreateProductA();
 }