Factory pattern

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

Page created on 6 Jun 2020