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