What is the Singleton design pattern?
-
A
A pattern that creates a new object for each request
-
B
A pattern ensuring a class has only one instance and provides a global access point to it
-
C
A pattern combining multiple objects into one
-
D
A pattern for creating families of related objects