3 ms·
FWIW: I was referring to this: > Note that decorators and the original class object share a common set of features. In the previous diagram, the operation() me
by berkes 1y ago
FWIW: I was referring to this:
> Note that decorators and the original class object share a common set of features. In the previous diagram, the operation() method was available in both the decorated and undecorated versions.
and
>
GoF Book, "Design Patterns: Elements of Reusable Object-Oriented Software", p.166:
> "A decorator object conforms to the interface of the component it decorates so that its presence is transparent to clients."