Card 67 / 72: When would you use the GOF Decorator design pattern?
A)
to translates an existing class interface into a compatible target interface
B)
to assign more functionality to an object without sub-classing it
C)
to decouple an abstraction from its implementation so that the two can vary independently
D)
to nest layers of decorators to add more functionality
Answer:
B) to assign more functionality to an object without sub-classing it
D) to nest layers of decorators to add more functionality
Previous Card | ← Previous Card Button |
Next Card | → Next Card Button |
Flip Card | Space-Bar |
|
Author:
JavaChamp TeamSenior Java Developer
QuizOver.com
Germany
Access: |