MCPcopy Create free account
hub / github.com/Anchals24/Low-Level-Design / PlaceOrder

Class PlaceOrder

FactoryMethodDesignPattern/PlaceOrder.java:3–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1package CreationalDesignPattern.FactoryPattern.FactoryMethodDesignPattern;
2
3public class PlaceOrder {
4 public static void main(String[] args) {
5 PizzaStore nyPizzaStore = new NYStylePizzaStore();
6 nyPizzaStore.orderPizza("cheese");
7 nyPizzaStore.orderPizza("mushroom");
8
9 PizzaStore chicagoPizzaStore = new ChicagoStylePizzaStore();
10 chicagoPizzaStore.orderPizza("cheese");
11
12 }
13}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected