This chapter discusses behavioral patterns with Kotlin. Behavioral patterns deal with how objects interact with one another.
We'll see how an object can behave in a totally different manner based on the situation, how objects can communicate without knowledge of one another, and how we can iterate over complex structures easily.
In this chapter, we will cover the following topics:
- Strategy
- Iterator
- State
- Command
- Chain of responsibility
- Interpreter
- Mediator
- Memento
- Visitor
- Template method
- Observer