September 2016
Intermediate to advanced
775 pages
18h 22m
English
The Decorator pattern shines when used for implementing cross-cutting concerns [Lott14, page 223], [j.mp/wikicrosscut]. Examples of cross-cutting concerns are:
In general, all parts of an application that are generic and can be applied to many other parts of it, are considered cross-cutting concerns.
Another popular example of using the Decorator pattern is Graphical User Interface (GUI) toolkits. In a GUI toolkit, we want to be able to add features such as borders, ...
Read now
Unlock full access