What is a Singleton Pattern and where it is used and why it is used and can a static variable declared inside the Singleton Class and if it is watz the purpose of giving static variable inside the Singleton Class.
posted 10 years ago
Singleton pattern is used when you need only one instance of a class to serve the requests ( like printer ). Check this article . It's being discussed many times here. [ May 03, 2005: Message edited by: Srinivasa Raghavan ]