| 3 | import CreationalDesignPattern.FactoryPattern.AbstractFactoryPattern.IngredientFactories.PizzaIngredientFactory; |
| 4 | |
| 5 | public 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected