|

Displayed below are two UML diagrams describing the decorator pattern.
The first UML depicts the general properties of the decorator pattern, while the second UML diagram has been customized to match our provided code sample.
Please note: The diagrams seen below have been purposely shrunk to their current size, as the original diagrams are quite large. To see the UML diagram in its entirety, click on its corresponding scaled-down version.

 General UML diagram of the decorator pattern.

 UML diagram of the decorator pattern when applied to Gambler code.
|