public abstract void Pour(AbstractLiquid liquid);
Пример #2
0
 public override void Pour(AbstractLiquid liquid) =>
 Console.WriteLine($"Pouring {liquid} into {this}...");
 public SoftDrinkAssembler(SoftDrinkFactory factory)
 {
     _bottle = factory.CreateBottle();
     _liquid = factory.CreateLiquid();
 }