Intermediate
Object-Oriented Programming Concepts
Q52 / 100
Which design pattern ensures a class has only one instance and provides a global access point to it?
Correct! Well done.
Incorrect.
The correct answer is B) Singleton
B
Correct Answer
Singleton
Explanation
The Singleton pattern restricts instantiation of a class to a single object, often used for shared resources like configuration managers.
Progress
52/100