User Id :    Password :      New Member   Forgot Password  
Topic: What is the Singleton pattern?
Sachin Jain
11 Oct 2010 at 04:40 AM
What is the Singleton pattern?
Re: What is the Singleton pattern?
Najmul Hoda
11 Oct 2010 at 11:37 PM

Singleton Pattern defines that an object of a class of this type can have only one instance active at any time and that it provides a Global point of access to it from a well known access point.

The office of the President of the United States is a Singleton. The United States Constitution specifies the means by which a president is elected, limits the term of office, and defines the order of succession. As a result, there can be at most one active president at any given time. Regardless of the personal identity of the active president, the title, "The President of the United States" is a global point of access that identifies the person in the office.

Total Replies: 1
Featured Text Ad

Featured Ad