public override double GetPrice() { return(m_Price + m_BaseComponent.GetPrice()); }
public override decimal GetPrice() { return(_price + _baseComponent.GetPrice()); }
static void PrintProductDetails(BakeryComponent bakeryComponent) { Console.WriteLine("Item: {0}, Price: {1}\n", bakeryComponent.GetName(), bakeryComponent.GetPrice()); }
private static void PrintProductDetails(BakeryComponent cBase) { Console.WriteLine("Item: {0} Price: {1}", cBase.GetName(), cBase.GetPrice());; }