Number of questions 1,751
Number of tests completed 252,495
Number of questions answered 3,765,643
Number of registered users 19,174
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: 1820
Incorrectly answered: 3749
Terms of Use Ver. 2.0.6783.38332