November 2008 Entries
/* The Singleton pattern assures that there is one and only one instance of a class, and provides a global point of access to it. There are any number of cases in programming where you need to make sure that there can be one and only one instance of a class. For example, your system can have only one web service manager, or a single point of access to a database. The easiest way to make a class that can have only one instance is to embed a static variable inside the class that A static variable is...