September 2011
Intermediate to advanced
434 pages
9h 32m
English
The Singleton pattern provides a global means to access a unique object while ensuring the extensibility of that object. Figure 6-8 shows the class diagram.
Figure 6-8. Singleton pattern class diagram
This pattern has the following parts:
The pattern's benefits are as follows:
It also has this drawback:
Read now
Unlock full access