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