Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 329 Bytes

Factory Pattern.md

File metadata and controls

9 lines (6 loc) · 329 Bytes

Use this when you need to dynamically work out what class to instantiate

Factory Pattern

The strategy pattern as applied to the factory pattern gives the abstract factory pattern (used when you want a factory to only create a related family of objects)

Abstract Factory