public override double GetPrice() { return(m_Price + m_BaseComponent.GetPrice()); }
private static void PrintProductDetails(BakeryComponent product) { Console.WriteLine(); // some whitespace for readability Console.WriteLine("Item: {0}, Price: {1}", product.GetName(), product.GetPrice()); }