Card 68 / 72: What are the consequences of applying the GOF Decorator pattern?
A)
the client code can gradually add more functionality as it nests more layers of decorators
B)
it assigns more functionality to an object without sub-classing it
C)
it makes it harder to identify the the decorated and the decorator objects
D)
the client code can traverse tree structures of arbitrary depth recursively
Answer:
A) the client code can gradually add more functionality as it nests more layers of decorators
B) it assigns more functionality to an object without sub-classing it
C) it makes it harder to identify the the decorated and the decorator objects
Previous Card | ← Previous Card Button |
Next Card | → Next Card Button |
Flip Card | Space-Bar |
|
Author:
JavaChamp TeamSenior Java Developer
QuizOver.com
Germany
Access: |