Exemplo n.º 1
0
 public Client(AbstractFactory abstractFactory)
 {
     water = abstractFactory.CreateWater();
     bottle = abstractFactory.CreateBottle();
     cover = abstractFactory.CreateCover();
 }
Exemplo n.º 2
0
 public abstract void Interact(AbstractBottle bottle);
Exemplo n.º 3
0
 public Client(AbstractFactory abstractFactory)
 {
     water  = abstractFactory.CreateWater();
     bottle = abstractFactory.CreateBottle();
     cover  = abstractFactory.CreateCover();
 }
Exemplo n.º 4
0
 public override void Interact(AbstractBottle bottle)
 {
     Console.WriteLine(this + " interact with " + bottle);
 }
Exemplo n.º 5
0
 public override void Interact(AbstractBottle bottle)
 {
     Console.WriteLine(this+" interact with "+bottle);
 }
Exemplo n.º 6
0
 public abstract void Interact(AbstractBottle bottle);