Question OOP-SOLID-0031
EasyWhich design pattern lets a method decide which concrete class to instantiate, so the caller works only with an interface?
- A.
Adapter
- 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 lets a method decide which concrete class to instantiate, so the caller works only with an interface?
Adapter
Factory Method
Sign up free to see the answer and a step-by-step explanation.
Facade
Singleton