Ch4PizzaStore: last part with AbstractFactory. This example in the book is really TERRIBLE.
This commit is contained in:
@@ -3,9 +3,8 @@
|
||||
using Ch4PizzaStore;
|
||||
|
||||
PizzaStore nyStore = new NYPizzaStore();
|
||||
PizzaStore chicagoStore = new ChicagoPizzaStore();
|
||||
|
||||
var pizza = nyStore.OrderPizza("cheese");
|
||||
Console.WriteLine($"Ethan ordered a {pizza.Name}\n");
|
||||
pizza = chicagoStore.OrderPizza("cheese");
|
||||
pizza = nyStore.OrderPizza("clam");
|
||||
Console.WriteLine($"Joel ordered a {pizza.Name}\n");
|
||||
Reference in New Issue
Block a user