Exemple #1
0
 private static void PrintPizzaCost(BasePizza basePizza)
 {
     Console.WriteLine(); // some whitespace for readability
     Console.WriteLine("Item: {0}, Price: {1}", basePizza.name(), basePizza.price());
 }
Exemple #2
0
 public override string name()
 {
     return(BasePizza.name() + _name);
 }