Chapter 9. Behavioral Design Patterns – Part 2

The group of behavioral design patterns is a relatively big one. In the previous chapter, we looked at the first part of behavioral design patterns and understood what their purpose is. As we already know, these patterns are used to deal with behavior and modeling object communication in computer programs.

In this chapter, we will continue going through the different behavioral design patterns as seen from the point of view of Scala. We will look at the following topics:

  • Iterator
  • Mediator
  • Memento
  • Observer
  • State
  • Template method
  • Visitor

The design patterns that we will cover in this chapter might not be as relevant to functional programming as some of the others we've seen earlier. They might look like Scala ...

Get Scala Design Patterns now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.