The Singleton Design Pattern

The Singleton design pattern restricts instantiation to a single instance and enables a delayed instantiation. This enables a public constant API to retrieve the instance while validating that only one instance of it can ever be created. This makes it easy to share the object with multiple objects.

  • Check out the delayed instantiation of an object
  • Take a look at the constant interface to gain access to the object
  • Check out how only one instance of the object is needed

Complete and Continue