Which design pattern ensures a class has only one instance and provides a…

2026

Which design pattern ensures a class has only one instance and provides a global point of access to it ?

  1. A.

    Factory Pattern

  2. B.

    Singleton Pattern

  3. C.

    Observer Pattern

  4. D.

    Strategy Pattern

Attempted by 33 students.

Show answer & explanation

Correct answer: B

The Singleton Pattern ensures a class has only one instance and provides a global point of access to it.

Explore the full course: Niacl Ao It Specialist