Beispiel #1
0
 public override double GetPrice()
 {
     return(m_Price + m_BaseComponent.GetPrice());
 }
Beispiel #2
0
 private static void PrintProductDetails(BakeryComponent product)
 {
     Console.WriteLine(); // some whitespace for readability
     Console.WriteLine("Item: {0}, Price: {1}", product.GetName(), product.GetPrice());
 }