Skip to Content

What is Singleton Design Pattern?

What is Singleton Design Pattern?

Submitted by • April 17, 2020

Singleton design pattern is a software design pattern for objects that restricts the instantiation of a class to one "single" instance. It is a creational design pattern which is extremely useful when exactly one object is required to coordinate actions across the system.

Finally, we are now ready to deliver you your first ever classic design pattern example. But before that we need to answer a question. Why does Singleton Design Pattern fall in to the category of Creational Design Pattern? The reason is because it deals with creating an object and that too only once.

Voted by:
Voted by decipherzone

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>