Question OOP-SOLID-0030
EasyWhich design pattern makes sure a class has only one instance and gives a global way to reach it?
- A.
Singleton
- B.
Factory Method
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
SOLID and Design Principles question
Which design pattern makes sure a class has only one instance and gives a global way to reach it?
Singleton
Factory Method
Sign up free to see the answer and a step-by-step explanation.
Decorator
Observer