Design Pattern - 3. Decorator pattern
Upcoming SlideShare
Loading in...5
×
 

Design Pattern - 3. Decorator pattern

on

  • 514 views

Refer:

Refer:
Head First Design Pattern

Statistics

Views

Total Views
514
Views on SlideShare
514
Embed Views
0

Actions

Likes
0
Downloads
10
Comments
0

0 Embeds 0

No embeds

Accessibility

Upload Details

Uploaded via as OpenOffice

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Design Pattern - 3. Decorator pattern Design Pattern - 3. Decorator pattern Presentation Transcript

    • Decorator Pattern
      Francesco Ierna
    • Decorator Pattern
    • 1. Creo base
    • 2. wrappo la base aggiungendo condimenti
    • 3. il totale è dato dal costo della base + i condimenti che sono stati aggiunti alla base
    • Oggetti :
    • Base + n condimenti aggiunti alla base
    • Decorator Pattern Problem
    • Solution
    • Solution Example
    • Decorator Code Example
    • Code Example
    • Code