Chapter 3. Creational Design Patterns

Creational design patterns are one of the three types of design pattern commonly associated with the Gang of Four; they are design patterns that concern object creation mechanisms.

Instantiating objects or basic class creation on their own, without controlling this process, can result in design problems or simply add additional complexity to the process.

In this chapter, we will cover the following topics:

  • The software design process
  • Simple Factory
  • Factory Method
  • Abstract Factory pattern
  • Lazy initialization
  • Builder pattern
  • Prototype pattern

Before we learn about Creational design patterns, let's talk a little about the architectural process.

Software design process

Software Engineering Body of Knowledge is a book published ...

Get Mastering PHP Design Patterns now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.