public override string GetName()
 {
     return(_cake.GetName());
 }
Exemple #2
0
 public void Print(Cake cake)
 {
     Console.WriteLine("{0:C2}", cake.CalculateCost());
     Console.WriteLine(cake.GetName());
 }