Singleton Flashcards
1
Q
Intent/Purpose
A
Ensure class has one and only one instance with a global point of access
2
Q
Controlled access to sole instance
A
Consequence
3
Q
Reduced name space
A
Consequence
4
Q
More flexible than class operations
A
Consequence
5
Q
Ensuring a unique instance
A
Implementation
6
Q
Sub classing the Singleton class
A
Implementation