Singleton
Purpose | Ensure that a class has only 1 instance, which is accessible from a
well-known access point. Use Singleton for objects that are unique in the system (e.g., an operating system has only 1 instance of a FileSystem). |
Structure |
|
Consequences |
|
Implementation |
|
Sample Code | |
Related Patterns |