public Client(AbstractFactory abstractFactory)
 {
     water = abstractFactory.CreateWater();
     bottle = abstractFactory.CreateBottle();
     cover = abstractFactory.CreateCover();
 }
 public abstract void Interact(AbstractBottle bottle);
Exemple #3
0
 public Client(AbstractFactory abstractFactory)
 {
     water  = abstractFactory.CreateWater();
     bottle = abstractFactory.CreateBottle();
     cover  = abstractFactory.CreateCover();
 }
 public override void Interact(AbstractBottle bottle)
 {
     Console.WriteLine(this + " interact with " + bottle);
 }
 public override void Interact(AbstractBottle bottle)
 {
     Console.WriteLine(this+" interact with "+bottle);
 }
Exemple #6
0
 public abstract void Interact(AbstractBottle bottle);