Singleton Pattern
Singleton is creational design pattern.
Only one instance of the class is created in Singleton Pattern.
Example :
- Only one instance of confriguation manager
Only one instance of the class is created in Singleton Pattern.
Example :
- Only one instance of confriguation manager
- Only one instance of Logger
- Only one instance of db connection
No comments:
Post a Comment