Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Creational Patterns

Part of the unified study index: Home · canonical comparisons in selection guide.

Ways to make objects without tangling the code that uses them.

  • Factory Method — one flow, subclasses pick the product kind.
  • Abstract Factory — one doorway for a matching family of parts.
  • Builder — step-by-step assembly with a final validity check.
  • Prototype — clone a tuned example, then tweak the copy.
  • Singleton — one shared owner for a single resource.