SingletonPattern (singleton) ----- Java / .Net

Singleton (Singleton Pattern) is one of the easiest in Java design patterns.

This type of design pattern belongs create schema, which provides the best way to create objects.

This model involves a single class that is responsible for creating your own objects, while ensuring that only a single object is created. This class provides the only way to access the object can directly access, no instance of the object class.

Guess you like

Origin www.cnblogs.com/vic-tory/p/12147337.html