Difference between Decorator pattern and Delegation pattern
Decorator uses Delegation, but in a very specific way. Delegation (or composition) is not as much a pattern as a general way to build complex behavior by coordinating use of several other objects. It’s often used in a set or static way. By “set or static” I mean something like this: class Delegator { private … Read more