9
Behavioral Design Patterns
In the last two chapters, we learned about patterns that can help us in the creation of objects and in building complex object structures. Now, we are ready to shift our focus to another critical aspect of software design: behavior.
In this chapter, we will learn how objects interact, how they can be combined, and how their communication can be structured to produce extensible, modular, reusable, and adaptable systems. We will address questions such as “How can we modify parts of an algorithm at runtime?”, “How can an object change its behavior based on its state?”, and “How can we iterate over a collection without knowing its underlying implementation?”. These are the kinds of challenges that behavioral design patterns ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access