Consider a Component class C. Which of the following describes part of the process of applying the Decorator design pattern to an object of class C ?
A) C is made a subclass of the Decorator class, which then overrides certain methods.
B) A Decorator class subclassed from C keeps a reference to the object of class C.
C) C is made into an abstract class with a decorate method.
D) C and the Decorator class are made subclasses of a parent class.
E) Additional decorating fields and/or methods are added to a single instance of C.
Consider a Component class C. Which of the following describes part of the process of applying the Decorator design pattern to an object of class C ? O A) C is made a subclass of the Decorator class, which then overrides certain methods. O B)ADecorator class subclassed from C keeps a reference to the object of class C. O C c is made into an abstract class with a decorate method O D)C and the Decorator class are made subclasses of a parent class O E Additional decorating fields and/or methods are added to a single instance of C