public override string GetName() { return(string.Format("{0}, {1}", m_BaseComponent.GetName(), m_Name)); }
public override string GetName() { return(String.Format("{0}, {1}", _baseComponent.GetName(), _name)); }
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());; }