Interviews2 answers
Give one use of a Singleton pattern.
2 Answers
it is used for creating object once and use it throughout the application
Gaurav HalveyPosted Jul 4, 2015, 10:07 PM EDT
Use it to ensure that only one instance of a class exists.
Vithal WadjePosted Oct 17, 2012, 2:46 AM EDT
