Beispiel #1
0
 public override double GetCost()
 {
     return(_drinkBase.GetCost() * 0.8);
 }
 static void PrintDrink(DrinkBase drinkBase)
 {
     Console.WriteLine($"Drink:{drinkBase.GetDescription()} Price:{drinkBase.GetCost()}");
 }