Welcome to Shaun Luttin's public notebook. It contains rough, practical notes. The guiding idea is that, despite what marketing tells us, there are no experts at anything. Sharing our half-baked ideas helps everyone. We're all just muddling thru. Find out more about our work at bigfont.ca.

The Factory Pattern(s)

Tags: design-patterns, software-development

Simple Factory

Encapsulate object creation within a class.

Factory Method

Define a class that does operations on an object. Let sub-classes choose the object.

Abstract Factory

Encapsulate creation of related objects within a class. Let sub-classes choose the object.