April 2017
Intermediate to advanced
556 pages
11h 5m
English
In this section, we will take a look at a few of the common creational patterns. We will start with Singleton, and then go on to Prototype, Builder, and Factory, in that order.
The Singleton pattern is one of the most well-known and easily understood patterns in the entire pantheon of design patterns. It is usually defined as:
A Singleton is a class which has only one instance and a well-defined point of access to it.
The requirements of a Singleton can be summarized as follows: