Design Pattern - 3. Decorator pattern
-
Upload
francesco-ierna -
Category
Technology
-
view
610 -
download
11
Transcript of Design Pattern - 3. Decorator pattern
PRESENTATION NAME
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