Mark’s Site

Pensieve for coding and golf :-)

Archives for the ‘2.3.1. Creational Patterns’ Category

Singleton Pattern

By admin • May 17th, 2008 • Category: 2.3.1. Creational Patterns

This is important, listen up! The singleton design pattern is used to ensure a class has only one instance, and that global access to that instance is available. In other words, it restricts instantiation of a class to one object.