public SmallSize(DrinkBase drinkBase) { _drinkBase = drinkBase; description = _drinkBase.GetDescription() + "+small size"; }
public BigSize(DrinkBase drinkBase) { _drinkBase = drinkBase; description = _drinkBase.GetDescription() + "+big size"; }
static void PrintDrink(DrinkBase drinkBase) { Console.WriteLine($"Drink:{drinkBase.GetDescription()} Price:{drinkBase.GetCost()}"); }
public MilkIngredient(DrinkBase drinkBase) { _drinkBase = drinkBase; description = _drinkBase.GetDescription() + "+milk"; }
public SugarIngredient(DrinkBase drinkBase) { _drinkBase = drinkBase; description = _drinkBase.GetDescription() + "+sugar"; }
public ChocolateIngredient(DrinkBase drinkBase) { _drinkBase = drinkBase; description = _drinkBase.GetDescription() + "+chocolate"; }