previous
|
start
|
next
The SINGLETON Pattern
Solution
Define a class with a private constructor.
The class constructs a single instance of itself.
Supply a static method that returns a reference to the single instance.
previous
|
start
|
next