Question OOP-SOLID-0059
MediumWhich pattern guarantees a class has only one instance and gives global access to it?
- A.
Builder
- B.
Singleton
- 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 pattern guarantees a class has only one instance and gives global access to it?
Builder
Singleton
Sign up free to see the answer and a step-by-step explanation.
Adapter
Prototype