Number of questions 1,751
Number of tests completed 249,172
Number of questions answered 3,726,777
Number of registered users 19,071
Sign In | Register
Skip Navigation Links
Question: Match this design pattern: Add responsibilities to objects dynamically
Answer1: Singleton
Answer2: Adapter
Answer3: State
Answer4: Strategy
Answer5: Decorator
Answer: Decorator

Explaination: Attach additional responsibilities to an object dynamically. Decorators provide a flexible alternative to subclassing for extending functionality.
Link: External Explaination

Correctly answered: 1722
Incorrectly answered: 3501
Terms of Use Ver. 2.0.6783.38332