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

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.

主站蜘蛛池模板: 怀化市| 子长县| 高阳县| 丰宁| 蚌埠市| 舟山市| 南靖县| 乌鲁木齐县| 贵定县| 泾源县| 金山区| 南投县| 华蓥市| 罗定市| 巴中市| 页游| 博野县| 合阳县| 八宿县| 平阳县| 威海市| 隆安县| 普定县| 定兴县| 无为县| 昭通市| 咸阳市| 凤山县| 缙云县| 南华县| 安远县| 吴江市| 宝鸡市| 青岛市| 福鼎市| 蒲城县| 咸丰县| 黔江区| 崇阳县| 毕节市| 铜川市|