Options
All
  • Public
  • Public/Protected
  • All
Menu

The Singleton class defines the getInstance method that lets clients access the unique singleton instance.

Hierarchy

  • Singleton

Index

Constructors

Properties

Methods

Constructors

  • The Singleton's constructor should always be private to prevent direct construction calls with the new operator.

    Returns Singleton

Properties

instance: Singleton

Methods

  • The static method that controls the access to the singleton instance.

    This implementation let you subclass the Singleton class while keeping just one instance of each subclass around.

    Returns Singleton