Question OOP-CLS-0073
HardWhich pattern ensures a class has exactly one instance and is often criticised for hidden global state?
- A.
Builder
- B.
Factory
- 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
Classes and Objects question
Which pattern ensures a class has exactly one instance and is often criticised for hidden global state?
Builder
Factory
Sign up free to see the answer and a step-by-step explanation.
Singleton
Observer