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() + "\n"); pizza = chicagoStore.OrderPizza("cheese"); Console.WriteLine("Jole ordered a " + pizza.GetName() + "\n"); Console.Read(); }
static void Main(string[] args) { var newYorkPizzaStore = new NewYorkPizzaStore(); newYorkPizzaStore.OrderPizza("cheese"); Console.WriteLine("-----------------------------------------------------------"); var chicagoYorkPizzaStore = new ChicagoPizzaStore(); chicagoYorkPizzaStore.OrderPizza("cheese"); Console.ReadKey(); }