Singleton Pattern: One Instance to Rule Them All
The Singleton pattern ensures a class has only one instance and provides a global point of access to it.
Problem It Solves
- Need exactly one instance of a class (database connection, configuration, logger)
- Global access point required
- Control over instantiation