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