The objective of this chapter is to learn about behavioral patterns. Behavioral patterns are patterns that focus on object interaction, communication, and control flows. Most behavioral patterns are based on composition and delegation rather than inheritance. We will look at the following behavioral patterns in this chapter:
- The chain-of-responsibility pattern
- The command pattern
- The interpreter pattern
- The iterator pattern
- The observer pattern
- The mediator pattern
- The memento pattern
- The state pattern
- The strategy pattern
- The template method pattern
- The null object pattern
- The visitor pattern