static void Main(string[] args) { PizzaStore nyStore = new NYPizzaStore(); PizzaStore chicagoStore = new ChicagoPizzaStore(); Pizza pizza = nyStore.orderPizza("cheese"); Console.WriteLine("Ethan ordered a " + pizza.getName()); pizza = chicagoStore.orderPizza("cheese"); Console.WriteLine("Joel ordered a " + pizza.getName()); }
static void Main(string[] args) { string nyType = Console.ReadLine(); //string chicagoType = Console.ReadLine(); NYPizzaStore nYPizzaStore = new NYPizzaStore(); ChicagoPizzaStore chicagoPizzaStore = new ChicagoPizzaStore(); var pizza = nYPizzaStore.orderPizza(nyType); Console.WriteLine("Ethan ordered a " + pizza.getName() + "\n"); //pizza = chicagoPizzaStore.orderPizza(chicagoType); //Console.WriteLine("Ethan ordered a " + pizza.getName() + "\n"); }