SlideShare a Scribd company logo
QmPe
                                                initiative




DECORATOR PATTERN explained !




                                 Prepared by Annamalai C


           Copyright 2006-2011
Decorator Pattern in Real Life




           Decorates
             Dosa




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




                                                                           makes




                                                                           decorates




                                                                 Receives the Name of the Dish
                                                             2   Creates the Dish


               3   Delivers the Dish




                                       Copyright 2006-2011
How Decorator Pattern works in Java ?




                               Copyright 2006-2011
THANK YOU


                   Please visit
www.eclipseinclips.com | www.ancitconsulting.com

     Write to us on info@ancitconsulting.com




                  QmPe
                  initiative


                   Copyright 2006-2011

More Related Content

PPT
Residential Staging & Interior Decorating Projects by Angie Rempel
PDF
Decorator design pattern (A Gift Wrapper)
PPTX
Decorator Pattern 2.pptxdsadsadsadsadasdasdsa
PPTX
Decorator Pattern
PPTX
Decorator pattern
PPTX
Design Patterns - 01 Introduction and Decorator Pattern
PPTX
Decorator design pattern
PPTX
Decorator Pattern presentation theory and examples
Residential Staging & Interior Decorating Projects by Angie Rempel
Decorator design pattern (A Gift Wrapper)
Decorator Pattern 2.pptxdsadsadsadsadasdasdsa
Decorator Pattern
Decorator pattern
Design Patterns - 01 Introduction and Decorator Pattern
Decorator design pattern
Decorator Pattern presentation theory and examples

Similar to Design patterns - Decorator pattern (20)

PPT
Phani Kumar - Decorator Pattern
PPTX
java training in chennai
PPTX
Decorator design pattern
PPT
Design Patterns
PPTX
Decorator Design Pattern
PPT
Design patterns structuralpatterns(thedecoratorpattern)
 
PDF
Structure-Decorator deign pattern model fact
PPTX
Design pattern reading group – decorator pattern
PPT
Stoop 439-decorator
PPTX
Decorator design pattern
PDF
The Decorator Pattern
PPT
10-DesignPatterns.ppt
PPT
Design patterns represent the best practices used by experienced object-orien...
PDF
Design patterns 1july
PDF
Decorator Pattern | Object Oriented Design Pattern
PDF
Learning Php Design Patterns William Sanders
PDF
Design Patterns : The Ultimate Blueprint for Software
PPT
Software Architecture and Project Management module III : PATTERN OF ENTERPRISE
PDF
ABSTRACT FACTORY AND SINGLETON DESIGN PATTERNS TO CREATE DECORATOR PATTERN OB...
PDF
DECORATOR PATTERN IN WEB APPLICATION Design
Phani Kumar - Decorator Pattern
java training in chennai
Decorator design pattern
Design Patterns
Decorator Design Pattern
Design patterns structuralpatterns(thedecoratorpattern)
 
Structure-Decorator deign pattern model fact
Design pattern reading group – decorator pattern
Stoop 439-decorator
Decorator design pattern
The Decorator Pattern
10-DesignPatterns.ppt
Design patterns represent the best practices used by experienced object-orien...
Design patterns 1july
Decorator Pattern | Object Oriented Design Pattern
Learning Php Design Patterns William Sanders
Design Patterns : The Ultimate Blueprint for Software
Software Architecture and Project Management module III : PATTERN OF ENTERPRISE
ABSTRACT FACTORY AND SINGLETON DESIGN PATTERNS TO CREATE DECORATOR PATTERN OB...
DECORATOR PATTERN IN WEB APPLICATION Design
Ad

More from Annamalai Chockalingam (13)

PDF
Hello world e4 application part 5
PDF
Hello World e4 Application Part 7
PDF
Hello World e4 Application Part 6
PDF
Hello World e4 Application Part 2
PDF
Hello World e4 Application Part 3
PPT
Design patterns - Strategy Pattern
PPT
Design patterns - Observer Pattern
PPT
Design patterns - Factory Pattern
PPT
Design patterns - Adapter Pattern
PPT
Design patterns - Abstract Factory Pattern
PPT
Eclipse Spykit Project
PPT
Setting up Sphinx Development Environment
PPT
Eclipse Ecosystem in India
Hello world e4 application part 5
Hello World e4 Application Part 7
Hello World e4 Application Part 6
Hello World e4 Application Part 2
Hello World e4 Application Part 3
Design patterns - Strategy Pattern
Design patterns - Observer Pattern
Design patterns - Factory Pattern
Design patterns - Adapter Pattern
Design patterns - Abstract Factory Pattern
Eclipse Spykit Project
Setting up Sphinx Development Environment
Eclipse Ecosystem in India
Ad

Recently uploaded (20)

PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
Big Data Technologies - Introduction.pptx
PPTX
MYSQL Presentation for SQL database connectivity
PPT
Teaching material agriculture food technology
PPTX
Spectroscopy.pptx food analysis technology
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Cloud computing and distributed systems.
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Empathic Computing: Creating Shared Understanding
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
KodekX | Application Modernization Development
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
Encapsulation_ Review paper, used for researhc scholars
Big Data Technologies - Introduction.pptx
MYSQL Presentation for SQL database connectivity
Teaching material agriculture food technology
Spectroscopy.pptx food analysis technology
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Spectral efficient network and resource selection model in 5G networks
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Cloud computing and distributed systems.
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Empathic Computing: Creating Shared Understanding
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Digital-Transformation-Roadmap-for-Companies.pptx
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
MIND Revenue Release Quarter 2 2025 Press Release
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
KodekX | Application Modernization Development
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
How UI/UX Design Impacts User Retention in Mobile Apps.pdf

Design patterns - Decorator pattern

  • 1. QmPe initiative DECORATOR PATTERN explained ! Prepared by Annamalai C Copyright 2006-2011
  • 2. Decorator Pattern in Real Life Decorates Dosa Copyright 2006-2011
  • 3. Decorator Pattern in Java DecoratorClient Component Decorator Concrete Component Concrete Decorator Copyright 2006-2011
  • 4. Real Life vs Java Object Component Concrete Component Copyright 2006-2011
  • 5. Real Life vs Java Object Component Decorator Concrete Decorator Copyright 2006-2011
  • 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. How Decorator Pattern works in Java ? Copyright 2006-2011
  • 8. THANK YOU Please visit www.eclipseinclips.com | www.ancitconsulting.com Write to us on info@ancitconsulting.com QmPe initiative Copyright 2006-2011