Question OOP-SOLID-0058
MediumWhich pattern creates objects without the client naming the concrete class, such as ShapeFactory.create("circle")?
- A.
Decorator
- B.
Observer
- 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 creates objects without the client naming the concrete class, such as ShapeFactory.create("circle")?
Decorator
Observer
Sign up free to see the answer and a step-by-step explanation.
Strategy
Factory Method / Simple Factory