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

Method prepare

AbstractFactoryPattern/MushroomPizza.java:11–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9
10 }
11 @Override
12 void prepare() {
13
14 System.out.println("Preparing " + name);
15 dough = ingredientFactory.createDough();
16 sauce = ingredientFactory.createSauce();
17 cheese = ingredientFactory.createCheese();
18 pepperoni = ingredientFactory.createPepperoni();
19
20 }
21}

Callers

nothing calls this directly

Calls 4

createDoughMethod · 0.65
createSauceMethod · 0.65
createCheeseMethod · 0.65
createPepperoniMethod · 0.65

Tested by

no test coverage detected