Question: In the Decorator Pattern, what role does the ConcreteComponent play? A . It extends the Decorator class to create custom behavior. B . It adds
In the Decorator Pattern, what role does the ConcreteComponent play?
A It extends the Decorator class to create custom behavior.
B It adds specific responsibilities to objects.
C It defines the core functionality and is wrapped by decorators.
D It is an abstract class that implements the Component interface.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
