Singleton Pattern: intent and motivation
Multiple motivations for Singleton Design Pattern
Multiple motivations for Singleton Design Pattern
This is not the only motivation for the Singleton pattern.
The Gang of Four suggests several other motivations including:
Most patterns have many different motivations.
There would not be much point to a design pattern that was only useful in one context. Design patterns are supposed to be adaptable to a broad range of problems.
The Gang of Four suggests several other motivations including:
- File and window managers
- A/D converters in digital filters
- The company an accounting system serves
Most patterns have many different motivations.
There would not be much point to a design pattern that was only useful in one context. Design patterns are supposed to be adaptable to a broad range of problems.