Esempio n. 1
0
 public override double CalculateCost()
 {
     return(_cake.CalculateCost());
 }
Esempio n. 2
0
 public void Print(Cake cake)
 {
     Console.WriteLine("{0:C2}", cake.CalculateCost());
     Console.WriteLine(cake.GetName());
 }