Example #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());
 }
 public override double GetPrice()
 {
     return(Price + _baseComponent.GetPrice());
 }
 public override double GetPrice()
 {
     return(m_Price + _component.GetPrice());
 }
Example #5
0
 double BakeryComponent.GetPrice()
 {
     return(price + BaseComponent.GetPrice());
 }