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 ?
- A.
Factory Pattern
- B.
Singleton Pattern
- C.
Observer Pattern
- 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.