public Client(AbstractFactory abstractFactory)
 {
     water = abstractFactory.CreateWater();
     bottle = abstractFactory.CreateBottle();
     cover = abstractFactory.CreateCover();
 }
Exemple #2
0
 public Client(AbstractFactory abstractFactory)
 {
     water  = abstractFactory.CreateWater();
     bottle = abstractFactory.CreateBottle();
     cover  = abstractFactory.CreateCover();
 }