Example #1
0
 public Client(AbstractFactory factory)
 {
     water = factory.CreateWater();
     bottle = factory.CreateBottle();
     label = factory.CreateLabel();
     cover = factory.CreateCover();
 }
Example #2
0
 public Client(AbstractFactory factory)
 {
     // јбстрагирование процесса инстанцировани¤.
     water = factory.CreateWater();
     bottle = factory.CreateBottle();
     cover = factory.CreateCover();
 }
Example #3
0
 public Client(AbstractFactory abstractFactory)
 {
     water = abstractFactory.CreateWater();
     bottle = abstractFactory.CreateBottle();
     cover = abstractFactory.CreateCover();
 }
 public abstract void Interact(AbstractWater water);
Example #5
0
 public override void Interact(AbstractWater water)
 {
     Console.WriteLine(this + " interact with " + water);
 }