1
edit
Changes
→Sample Code
==Sample Code==
[[Image:beveragedecorator.png|300 px|thumb|Beverage Decorator UML diagram]]
Beverage is the abstract component class
public abstract class Beverage {
//static abstract double size();
}
[[Image:wrappingdecorator.png|300 px|thumb|Figure 1 wrapping Decorator classes]]
Leaf classes that inherit from Beverage class
}
}
[[Image:beverageDecoratorWholePic.png|300 px|thumb|The Big Picture]]
Condiment Decorator class
}
}
<!--
{| align="left"
|-
[[Image:beverageDecoratorWholePic.png|300 px|Whole Picture]]
|}
-->
==Example==