Structural Patterns - Composite
        Melbourne Patterns Group July 1 2009
                   Chris Bushell
Intent
Allow clients to treat primitive objects and
containers in the same way
Graphics Example
• Line

• Rectangle

• Text

etc.
Graphics Example Continued
Graphic
  Line
  Rectangle
  Picture
        Line
        Rectangle
Recursive Composition
Puzzle Example
Participants
• Component

• Leaf

• Composite
Participants
Code
Upcoming SlideShare
Loading in...5
×

Composite Pattern

614
-1

Published on

An overview of the Composite Pattern form the GoF book.

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
614
On Slideshare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
14
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Composite Pattern

  1. 1. Structural Patterns - Composite Melbourne Patterns Group July 1 2009 Chris Bushell
  2. 2. Intent Allow clients to treat primitive objects and containers in the same way
  3. 3. Graphics Example • Line • Rectangle • Text etc.
  4. 4. Graphics Example Continued Graphic Line Rectangle Picture Line Rectangle
  5. 5. Recursive Composition
  6. 6. Puzzle Example
  7. 7. Participants • Component • Leaf • Composite
  8. 8. Participants
  9. 9. Code
  1. ¿Le ha llamado la atención una diapositiva en particular?

    Recortar diapositivas es una manera útil de recopilar información importante para consultarla más tarde.

×