#design-patterns

Singleton Design Pattern

The Singleton design pattern ensures that a class has only one instance and provides a global point of access to it. This pattern is useful when you want to limit the number of instances of a class to one.