By jsugrue
via java.dzone.com
Published: Jul 30 2008 / 14:09
The Decorator pattern is very easy to understand, use and implement. Lets imagine we have a car factory and we offer a variety of options to our customers - sunroof, airconditioner, airbags etc. First of all we need create our Car object. To make it simple I will be demonstrating a concrete car object but the best use should be creating a Car interface and build your Car objects implementing this interface.
Add your comment
Voters For This Link (13)
-
jsugrue -
Thierry.Lefort -
alashcraft -
rsmaniak -
mhenke -
NBharti78 -
jaux -
yuan_hang -
imeshev -
petieboy -
hartung -
jpnalmeida -
davneter