Next: MVC - Model-View-Controller
Up: Design patterns used in
Previous: Design patterns used in
Singleton means that you want one and only one instance of an object within one program.
It is used when creating more than one instance of a given class is inappropriate.
List of classes that implement this pattern:
- Configuration - the class that keeps the configuration, we need only one such object
- DatabaseConnectionFactory - the class that produces connection with the given type of datatype on request.