Question OOP-SOLID-0067
HardWhich design pattern lets you add behaviour like logging or caching around an object without changing its class?
- A.
Decorator
- B.
Prototype
- 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 you add behaviour like logging or caching around an object without changing its class?
Decorator
Prototype
Sign up free to see the answer and a step-by-step explanation.
Builder
Singleton