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

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.

主站蜘蛛池模板: 吴桥县| 洪泽县| 辉县市| 双流县| 松阳县| 澄城县| 昭平县| 枣强县| 淮安市| 米泉市| 固镇县| 广元市| 浦东新区| 玉树县| 建平县| 赤壁市| 皮山县| 涿鹿县| 南安市| 新泰市| 县级市| 绥中县| 洞头县| 南郑县| 泸州市| 孟津县| 屏南县| 周口市| 巴中市| 蒲城县| 邵阳市| 平果县| 丹江口市| 木兰县| 萨嘎县| 湄潭县| 南丹县| 壶关县| 兴业县| 瑞金市| 泾川县|