Design patterns - Decorator pattern

1,044 views
986 views

Published on

This presentation is part of the Design Pattern Series. Presentation explains the use of Decorator Pattern comparing it against a real life situation and then showcasing the Java implementation of the same.

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,044
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
33
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Design patterns - Decorator pattern

  1. 1. QmPe initiativeDECORATOR PATTERN explained ! Prepared by Annamalai C Copyright 2006-2011
  2. 2. Decorator Pattern in Real Life Decorates DosaCopyright 2006-2011
  3. 3. Decorator Pattern in Java DecoratorClient Component Decorator Concrete Component Concrete Decorator Copyright 2006-2011
  4. 4. Real Life vs Java Object Component Concrete Component Copyright 2006-2011
  5. 5. Real Life vs Java Object Component Decorator Concrete Decorator Copyright 2006-2011
  6. 6. How Decorator Pattern works in Real Life ? 1 Orders a Dish from Menu makes decorates Receives the Name of the Dish 2 Creates the Dish 3 Delivers the Dish Copyright 2006-2011
  7. 7. How Decorator Pattern works in Java ? Copyright 2006-2011
  8. 8. THANK YOU Please visitwww.eclipseinclips.com | www.ancitconsulting.com Write to us on info@ancitconsulting.com QmPe initiative Copyright 2006-2011

×