Link Details

Link 99319 thumbnail
User 185351 avatar

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.
  • 13
  • 1
  • 1032
  • 295

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.