Esempio n. 1
0
 public override decimal GetPrice()
 {
     return(Price + _baseComponent.GetPrice());
 }
 private static void PrintProductDetails(BakeryComponent product)
 {
     Console.WriteLine(); // some whitespace for readability
     Console.WriteLine("Item: {0}, Price: {1}", product.GetName(), product.GetPrice());
 }
Esempio n. 3
0
 public override double GetPrice()
 {
     return(Price + _baseComponent.GetPrice());
 }
 public override double GetPrice()
 {
     return(m_Price + _component.GetPrice());
 }
Esempio n. 5
0
 double BakeryComponent.GetPrice()
 {
     return(price + BaseComponent.GetPrice());
 }