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

Common problems solved by the composite pattern

As a developer, it is more difficult to design an application so that the client can access your objects uniformly across the application, even if that object was a composition of objects or an individual object. This design pattern resolves difficulties and allows you to design objects in such a way that you can use that object as a composition of objects and a single individual object.

This pattern solves the challenges faced when creating hierarchical tree structures to provide clients with a uniform way to access and manipulate objects in the tree. The composite pattern is a good choice; it is less complex in this situation to treat primitives and composites as homogeneous.

主站蜘蛛池模板: 宿州市| 沧源| 华蓥市| 德钦县| 舞阳县| 镇赉县| 楚雄市| 寻乌县| 土默特左旗| 原阳县| 和硕县| 江西省| 淅川县| 商洛市| 和顺县| 绥滨县| 汝城县| 泸州市| 濮阳市| 达州市| 若尔盖县| 潞西市| 阆中市| 内乡县| 罗田县| 浦城县| 读书| 周口市| 永吉县| 阿克苏市| 桃园市| 沐川县| 泰州市| 会宁县| 广汉市| 清远市| 巢湖市| 峨边| 靖远县| 孟津县| 平和县|