Chapter 5: Behavioral Design Patterns
In this chapter, we will describe and analyze behavioral design patterns, which is the last category in the list of classical patterns. Behavioral design patterns try to solve the problem of assigning the precise responsibilities between objects in a way that is both decoupled and cohesive. You want to maintain the right balance between those two concepts so that the clients that interface with the objects won't have to know their internal connections.
In this chapter, we are going to cover the following main topics:
- Behavioral design patterns
- The Strategy pattern
- Chain of Responsibility
- The Command pattern
- The Iterator pattern
- The Mediator pattern
- The Observer pattern
- The Memento pattern
- The State pattern
- The Template method pattern
- The Visitor pattern
By the end of this chapter, you will have amassed all the knowledge and skills required to make use of behavioral design patterns...