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