- Intent ⇒ abstraction factory for a single product creation by if-else statements
- Useful when hiearchy of products to create is important, instead of hierachy of creators
- When needing to execute creation-depedent statmeents (e.g., logs, traces, stats…) you need
Factory
pattern
- Takes aways the
Creator
for automatically initializing Product
based on param received