Beispiel #1
0
 double IBakeryComponent.GetPrice()
 {
     return(m_Price + m_BaseComponent.GetPrice());
 }
Beispiel #2
0
 private static void PrintProductDetails(IBakeryComponent cBase)
 {
     Console.WriteLine(string.Format("Item: {0}, Price: {1}", cBase.GetName(), cBase.GetPrice()));
 }
Beispiel #3
0
 public double GetPrice()
 {
     return(m_Price + m_BaseComponent.GetPrice());
 }
 private static void PrintProductDetails(IBakeryComponent component)
 {
     Console.WriteLine(); // some whitespace for readability
     Console.WriteLine("Item: {0}, Price: {1}", component.GetName(), component.GetPrice());
 }