Upload
annamalai-c
View
789
Download
1
Embed Size (px)
DESCRIPTION
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.
Citation preview
DECORATOR PATTERN explained !
Prepared by Annamalai C
Copyright 2006-2011
QmPeinitiative
Copyright 2006-2011
Decorator Pattern in Real Life
DecoratesDosa
Copyright 2006-2011
Decorator Pattern in Java
DecoratorClient
Component Decorator
Concrete Component Concrete Decorator
Copyright 2006-2011
Real Life vs Java Object
Component
Concrete Component
Copyright 2006-2011
Real Life vs Java Object
Component Decorator
Concrete Decorator
Copyright 2006-2011
How Decorator Pattern works in Real Life ?
1 Orders a Dish from Menu
2Receives the Name of the DishCreates the Dish
3 Delivers the Dish
makes
decorates
How Decorator Pattern works in Java ?
Copyright 2006-2011
Copyright 2006-2011
QmPeinitiative
THANK YOU
Please visit www.eclipseinclips.com | www.ancitconsulting.com
Write to us on [email protected]