Exemple #1
0
 static void Print(Beverage beverage)
 {
     Console.WriteLine(beverage.GetDescription() + " $" + beverage.Cost());
 }
Exemple #2
0
 public override double Cost()
 {
     return(0.8 + beverage.Cost());
 }
 public override double Cost()
 {
     return(_beverage.Cost() + 0.35);
 }