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

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.

主站蜘蛛池模板: 湘阴县| 二连浩特市| 祥云县| 象州县| 平远县| 新乡市| 凤凰县| 德安县| 永丰县| 枣阳市| 星座| 黔西| 肃宁县| 隆德县| 江北区| 黄浦区| 榆林市| 宁乡县| 新密市| 额尔古纳市| 读书| 财经| 思南县| 永春县| 丹东市| 永兴县| 辽源市| 石河子市| 保康县| 汉沽区| 安吉县| 临颍县| 冕宁县| 天等县| 蓬溪县| 女性| 安庆市| 若尔盖县| 府谷县| 墨江| 延川县|