11
Structural Patterns
This chapter explores four structural design patterns from the well-known Gang of Four (GoF).
We use structural patterns to build and organize complex object hierarchies in a maintainable fashion. They allow us to dynamically add behaviors to existing classes, whether we designed the initial system this way or as an afterthought that emerges out of necessity later in the program’s lifecycle. Structural patterns promote reusability and enhance the overall flexibility of the system.
In this chapter, we cover the following topics:
- The Decorator design pattern
- The Composite design pattern
- The Adapter design pattern
- The Façade design pattern
The first two patterns help us extend a class dynamically and efficiently manage ...
Get Architecting ASP.NET Core Applications - Third Edition 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.