Design Patterns: The Singleton
Posted May 16 in Design Patterns, Programming, Software Patterns 7 Comments »Global variables tie classes to context and create unnatural interdependencies in an application. A Singleton ensures that a class only has one instance, and provides a global point of access to it. If a system only needs one instance of a class, and that instance is used in different parts of the system, you can control instantiation and access by making the class a singleton. Read the rest of this entry »
Recent Comments