Exemplo n.º 1
0
 public override string GetName()
 {
     return($"{_baseComponent.GetName()}, {Name}");
 }
 public override string GetName()
 {
     return(string.Format("{0}, {1}", _component.GetName(), m_Name));
 }
 private static void PrintProductDetails(BakeryComponent product)
 {
     Console.WriteLine(); // some whitespace for readability
     Console.WriteLine("Item: {0}, Price: {1}", product.GetName(), product.GetPrice());
 }
Exemplo n.º 4
0
 string BakeryComponent.GetName()
 {
     return(string.Format("{0}, {1}", BaseComponent.GetName(), name));
 }