– HFDP Factory
– idea is to encapsulate the creation
– 1st example was accepting a factory object that creates a pizza base on an input type
– 2nd example is the abstract factory which ties the pizza store and the pizza creation together, yet still flexible.
– specifying the steps and the createPizza api in the abstract class, it looks similar to template pattern