First page Back Continue Last page Overview Graphics

Singleton

The singleton pattern is a design pattern that restricts the instantiation of a class to one object.

The conception be generalized to restrict the instantiation to a certain or fixed number of objects.

The term stems from mathematics, where singleton – also called a unit set – is used for sets with exactly one element.