官术网_书友最值得收藏!

Structural design patterns

In the previous section, we discussed creational design patterns and how they provide the best solutions for object creation according to business demands. Creational design patterns only provide a solution for creating objects in the application with how these objects merge with each other in the application for a specific business goal, the structural design pattern comes into the picture. In this chapter, we will be exploring structural patterns, and how these patterns are useful to define the relationship between the objects either using inheritance or composition for larger structures of an application. Structural patterns allow you to solve many problems related to structuring the relationship between the objects. They show you how to glue different parts of a system together in a flexible and extensible fashion. Structural patterns help you guarantee that when one of the parts changes, the entire structure does not need to change; in a car you could replace the tyres with different vendors without impacting the other parts of that car. They also show you how to recast parts of the system that do not fit (but that you need to use) into parts that do fit.

主站蜘蛛池模板: 千阳县| 荥经县| 南雄市| 河津市| 安徽省| 绥宁县| 自贡市| 秭归县| 柳江县| 孟州市| 烟台市| 平山县| 巍山| 贡山| 紫金县| 同江市| 安岳县| 抚远县| 定安县| 桦南县| 武定县| 红安县| 民和| 漳平市| 宁波市| 贞丰县| 南阳市| 武清区| 即墨市| 油尖旺区| 临朐县| 蒙城县| 安西县| 夏邑县| 囊谦县| 石狮市| 宣化县| 偃师市| 炉霍县| 两当县| 青海省|