Categories
Code Area PHP Programming

Singleton Design Pattern

In software engineering, a singleton the design pattern which allowed only object of a class. That means singleton pattern restricts to create multi instance of a class. This is useful, when we need to create only one instance or object of a class. To do this we must need to ensure a mechanism where we can access that class without creating object for them.

This is very basic concept of  singleton design pattern.

By Sohel Rana

PHP Programmer, Software Engineer & Technology lover

Leave a Reply

Your email address will not be published. Required fields are marked *