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()); }
double BakeryComponent.GetPrice() { return(price + BaseComponent.GetPrice()); }