Beispiel #1
0
 public Client(AbstractFactory factory)
 {
     // јбстрагирование процесса инстанцировани¤.
     water  = factory.CreateWater();
     bottle = factory.CreateBottle();
     cover  = factory.CreateCover();
 }
Beispiel #2
0
 public Client(AbstractFactory factory)
 {
     water = factory.CreateWater();
     bottle = factory.CreateBottle();
     label = factory.CreateLabel();
     cover = factory.CreateCover();
 }
Beispiel #3
0
 public Client(AbstractFactory factory)
 {
     // јбстрагирование процесса инстанцировани¤.
     water = factory.CreateWater();
     bottle = factory.CreateBottle();
     cover = factory.CreateCover();
 }
Beispiel #4
0
 public Client(AbstractFactory factory)
 {
     water = factory.CreateWater();
     bottle = factory.CreateBottle();
 }
Beispiel #5
0
 public Client(AbstractFactory factory)
 {
     water  = factory.CreateWater();
     bottle = factory.CreateBottle();
 }
Beispiel #6
0
 public void ChangeFactory(AbstractFactory factory)
 {
     this.factory = factory;
     water        = factory.CreateWater();
     bottle       = factory.CreateBottle();
 }
Beispiel #7
0
 public Client(AbstractFactory factory)
 {
     this._cover  = factory.CreateCover();
     this._bottle = factory.CreateBottle();
     this._water  = factory.CreateWater();
 }