Skip to content

Singleton Pattern says that just"define a class that has only one instance and provides a global point of access to it". In other words, a class must ensure that only single instance should be created and single object can be used by all other classes.

Notifications You must be signed in to change notification settings

ParsaMehdipour/Intro-To-Singleton-Design-Pattern

Repository files navigation

Intro-To-Singleton-Design-Pattern

A Simple Use Of Singleton Design Pattern

The Singleton pattern is designed to restrict creation of a class to exactly one single instance. This pattern is used in a scenario where it makes sense to have only one of something, such as: a single class that orchestrates other objects' interactions, ex. Manager class.

About

Singleton Pattern says that just"define a class that has only one instance and provides a global point of access to it". In other words, a class must ensure that only single instance should be created and single object can be used by all other classes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages