Object-Oriented Programming (OOP)

Choose the correct description of Singleton pattern.

Correct answer

B. A design pattern that restricts the instantiation of a class to a single shared object.

Explanation

Singleton pattern refers to a design pattern that restricts the instantiation of a class to a single shared object.