EXAMPLES
Contents
Chapter 2
| 3
| 4
| 5
| 6
| 7
| 8
| 9
| 10 | Appendix
Downloads
Note:
Example 2.6 has a local update below, not included in these zip files
yet
Download
all the programs (76KB) in text format
Download images for
Example 3.4 (14 MB)
Download
all the programs as Visual Studio projects (1 MB)
Notes
- Some of the examples in the chapters make use of images or data
files. These should be preloaded into the same directory as the program
file in order for the program to run correctly.
- The formatting of the programs might differ slightly from that in
the book, due to the typographic process.
- In the Visual Studio versions of most programs, a
Console.Readkey() call has been inserted as the last statement so that
the output remains visible for inspection. Typing any key will close
the Console window.
Chapter 2 Structural Patterns: Decorator, Proxy, and Bridge
Chapter 3 Structural Patterns: Composite and Flyweight
Chapter 4 Structural Patterns: Adapter and Façade
Chapter 5 Creational Patterns: Prototype, Factory Method, and
Singleton
Chapter 6 Creational Patterns: Abstract Factory and Builder
Chapter 7 Behavioural Patterns: Strategy, State, and Template Method
Chapter 8 Behavioral Patterns: Chain of Responsibility and Command
Chapter 9 Behavioral Patterns: Iterator, Mediator, and Observer
Chapter 10 Behavioral Patterns: Visitor, Interpreter, and Memento
Chapter 2
| 3
| 4
| 5
| 6
| 7
| 8
| 9
| 10 | Appendix