ActionScript 3.0 Design Patterns

(Chris Devlin) #1

using bothinheritanceandcomposition. Finally, the Composite pattern composes


objects in a tree-structure. In this way, clients can treat objects and composition (of


objects) in the same way. By structuring objects in this way, the Composite pattern


greatly simplifies creating complex structures.


Chapter 4,Decorator Pattern
Chapter 5,Adapter Pattern
Chapter 6,Composite Pattern

Figure Part III-1. Structural design pattern


Structural Patterns


Class/
Object/
Interface

Class/
Object/
Interface

Class/
Object/
Interface

Class/
Object/
Interface

Larger structures are
created by multiple
inheritence and
composition
Free download pdf