Factory Design Pattern
TODO: Define factory.
Factory-VS-Builder
- Builder holds the parts of the object that are going to be used for a single object in it's state.
- Factory holds state the is used to create multiple objects.
- Factory decides what type of object to create.
- Builder is much more pre-determined on which object it is going to create.1
Backlinks