public override Pizza1 CreatePizza(string type) { Pizza1 p = null; if (type == "cheese") { p = new NewYorkCheesePizza1(); } else if (type == "clam") { p = new NewYorkClamPizza1(); } return(p); }
public override Pizza1 CreatePizza(string type) { Pizza1 p = null; if (type == "cheese") { p = new NewYorkCheesePizza1(); } else if (type == "clam") { p = new NewYorkClamPizza1(); } return p; }