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

Class ClamPizza

AbstractFactoryPattern/ClamPizza.java:5–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3import CreationalDesignPattern.FactoryPattern.AbstractFactoryPattern.IngredientFactories.PizzaIngredientFactory;
4
5public class ClamPizza extends Pizza{
6
7 PizzaIngredientFactory ingredientFactory;
8
9 public ClamPizza(PizzaIngredientFactory ingredientFactory){
10 this.ingredientFactory = ingredientFactory;
11 }
12
13 @Override
14 void prepare() {
15 System.out.println();
16 dough = ingredientFactory.createDough();
17 sauce = ingredientFactory.createSauce();
18 cheese = ingredientFactory.createCheese();
19 }
20}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected