Multiple choice

Which of the following usability are provided by the Singleton class?

  1. Singleton class provides interface inheritance.

  2. Singleton class has static initialization.

  3. Singleton class can be extended into a factory pattern.

  4. All of the above.

  5. Only (1) and (2).

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

All the above statements describe the usability of the Singleton class.