- Spring 5 Design Patterns
- Dinesh Rajput
- 121字
- 2021-07-08 09:59:38
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.
推薦閱讀
- 玩轉(zhuǎn)Scratch少兒趣味編程
- 深入實踐Spring Boot
- Practical DevOps
- Functional Programming in JavaScript
- Bootstrap Essentials
- Clojure Reactive Programming
- Android開發(fā)案例教程與項目實戰(zhàn)(在線實驗+在線自測)
- 微信小程序開發(fā)與實戰(zhàn)(微課版)
- 細(xì)說Python編程:從入門到科學(xué)計算
- CRYENGINE Game Development Blueprints
- 代替VBA!用Python輕松實現(xiàn)Excel編程
- Oracle數(shù)據(jù)庫編程經(jīng)典300例
- CodeIgniter Web Application Blueprints
- Instant GLEW
- Node.js實戰(zhàn):分布式系統(tǒng)中的后端服務(wù)開發(fā)