Changes

Jump to: navigation, search

Decorator

236 bytes added, 11:39, 1 March 2007
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==
1
edit

Navigation menu