上QQ阅读APP看书,第一时间看更新
Structural design patterns
Structural design patterns exist in order to help establish the relationships between different entities in order to form larger structures. They define how each component should be structured so that it has very flexible interconnecting modules that can work together in a larger system. The main features of structural design patterns include the following:
- The use of composition to combine the implementations of multiple objects
- Help build a large system made of various components by maintaining a high level of flexibility
In this book, we will focus on the following structural design patterns:
- The adapter design pattern
- The decorator design pattern
- The bridge design pattern
- The composite design pattern
- The facade design pattern
- The flyweight design pattern
- The proxy design pattern
The next subsections will put some light on what these patterns are about before we delve into them later in this book.