-
Which design pattern ensures that only one object of particular class gets created?
-
- State pattern
- Bridge pattern
- Singleton pattern
- Filter pattern
- None of these
Correct Option: C
Singleton pattern involves a single class which is responsible to create an object while making sure that only one object gets created. This class provides a way to access the only object which can be accessed directly without need to instantiate another object of the same class.