public Client(AbstractFactory factory)
 {
     _abstractProductA = factory.CreateProductA();
     _abstractProductB = factory.CreateProductB();
 }
Beispiel #2
0
 public Client(AbstractFactory f)
 {
     AbstractProducta = f.CreateProductA();
     AbstractProductb = f.CreateProductB();
 }
Beispiel #3
0
 public Client(AbstractFactory factory)
 {
     water  = factory.CreateWater();
     bottle = factory.CreateBottle();
 }
 public Client(AbstractFactory factory)
 {
     _abstractProductA = factory.CreateProductA();
     _abstractProductB = factory.CreateProductB();
 }