Question

Which design pattern would you use if you need to ensure that a class has only one instance, with a global point of access to that instance?

A Factory Pattern
B Singleton Pattern
C Observer Pattern
D Strategy Pattern
E Decorator Pattern
Practice Next

Relevant for Exams:

Hey! Ask a query