Question

Which design pattern is best suited for ensuring that 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
E Prototype Pattern
Practice Next

Hey! Ask a query