Preface | xiii
Part III,Structural Patterns
Chapter 4,Decorator Pattern
Chapter 5,Adapter Pattern
Chapter 6,Composite Pattern
Part IV,Behavioral Patterns
Chapter 7,Command Pattern
Chapter 8,Observer Pattern
Chapter 9,Template Method Pattern
Chapter 10,State Pattern
Chapter 11,Strategy Pattern
Part V contains two chapters on using multiple design patterns in application devel-
opment. The Model-View-Controller and Symmetric Proxy designs incorporate more
than a single design pattern. They’re organized like the other chapters on design pat-
terns as far as explaining how the multiple patterns work. However, the multiple
designs rely more on object diagrams than class diagrams.
Part V,Multiple Patterns
Chapter 12,Model-View-Controller Pattern
Chapter 13,Symmetric Proxy Pattern
Each chapter on design patterns is organized to optimize and clarify understanding
the purpose of a design pattern and how to use it. The following sections, although
not necessarily in this order, can be found in each of the chapters on design patterns:
- What is the pattern?
- Key features of the pattern
- The formal model of the pattern including a class diagram
- Key OOP concepts found in the pattern
- Minimalist abstract example
- Applied examples
We organized the book in this manner to provide a well-rounded picture of each
design pattern. By explaining the pattern and its key features, we focus on the pat-
tern’s function and structure. The formal model and class diagram gives a wider
overview, so you can see the structure and the interconnected classes and interface.
We also included certain key OOP concepts for the different patterns. We did this
for two reasons. First, the intermediate user will be better able to understand the
OOP concept at work, and so understand OOP better. Second, we hoped that
advanced users could see the concepts as shorthand to quickly determine how the
design pattern is structured.