Singleton
← Back to Creational Patterns
One instance globally. Ensures a class has only one instance and provides a global point of access to it. Controversial due to hidden global state, difficulty in testing, and tight coupling.
Key Properties
Related
- Dependency Injection (preferred alternative)
- Factory Method (contrast)