Learn Data Structures and Algorithms with Golang
上QQ阅读APP看书,第一时间看更新

Structural design patterns

Structural design patterns describe the relationships between the entities. They are used to form large structures using classes and objects. These patterns are used to create a system with different system blocks in a flexible manner. Adapter, bridge, composite, decorator, facade, flyweight, private class data, and proxy are the Gang of Four (GoF) structural design patterns. The private class data design pattern is the other design pattern covered in this section.

We will take a look at adapter and bridge design patterns in the next sections.