GofPatterns Gofpatterns  





Creational Patterns  «Prev  Next»
Lesson 4Common creational patterns
ObjectiveDescribe, Compare, and Contrast several Creational Patterns.
There is no particular limit to the number of creational patterns, any more than there is a finite number of possible blueprints for a house, there are five which are particularly well-known.
  1. Factory Method pattern
  2. Abstract Factory
  3. Builder
  4. Prototype
  5. Singleton

We have already looked at the Singleton pattern. Later in this module, you will have a chance to explore the Factory Method pattern in detail.
The other three common creational patterns are described in this SlideShow:



Three Design Patterns.
Creational: This deals with the concept of how an object can be created.
This often involves isolating the details of object creation so your code is not dependent on what types of objects there are and thus does not have to be changed when you add a new type of object. The aforementioned Singleton is classified as a creational pattern, and later in this course you will see examples of the Factory Method and Prototype.

Common Creational Patterns - Quiz

Click the link below to take a short quiz on the material just covered.
Common Creational Patterns - Quiz