Design Pattern - 3. Decorator pattern

548 views

Published on

Refer:
Head First Design Pattern

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
548
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
12
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Design Pattern - 3. Decorator pattern

  1. 1. <ul>Decorator Pattern </ul><ul>Francesco Ierna </ul>
  2. 2. <ul>Decorator Pattern </ul><ul><li>1. Creo base
  3. 3. 2. wrappo la base aggiungendo condimenti
  4. 4. 3. il totale è dato dal costo della base + i condimenti che sono stati aggiunti alla base
  5. 5. Oggetti :
  6. 6. Base + n condimenti aggiunti alla base </li></ul>
  7. 7. <ul>Decorator Pattern Problem </ul>
  8. 8. <ul>Solution </ul>
  9. 9. <ul>Solution Example </ul>
  10. 10. <ul>Decorator Code Example </ul>
  11. 11. <ul>Code Example </ul>
  12. 12. <ul>Code </ul>

×