September 2011
Intermediate to advanced
434 pages
9h 32m
English
The Simple Singleton pattern provides a global reference to an object that requires uniqueness. Figure 6-7 shows the class diagram.
Figure 6-7. Simple Singleton pattern class diagram
This pattern has the following parts:
The pattern's benefits are as follows:
It also has this drawback:
Chapter 4 explained that not all object-oriented languages are built equally, and therefore not all patterns can be implemented equally. ...
Read now
Unlock full access