- Spring 5 Design Patterns
- Dinesh Rajput
- 194字
- 2021-07-08 09:59:37
Composite design pattern
-GoF Design Patterns
In software engineering, the composite pattern comes under the structural design pattern. According to this pattern, a group of objects of the same type are treated as a single object by the client. The idea behind the Composite design pattern is to compose a set of objects into a tree structure to represent a module of a larger structural application. And this structure for clients is a single unit or instance uniformly.
The motivation behind the Composite design pattern is that objects in the system are grouped into the tree structure, and a tree structure is a combination of the node-leaf and branches. In the tree structure, nodes have a number of leaves and other nodes. Leaf doesn't have anything, which means there is no child of leaf in the tree. Leaf is treated as the end point of tree-structured data.
Let's look at the following figure, which represents data in the tree structure in the form of node and leaf:

- VMware View Security Essentials
- LabVIEW Graphical Programming Cookbook
- 控糖控脂健康餐
- Java編程指南:基礎知識、類庫應用及案例設計
- 網絡爬蟲原理與實踐:基于C#語言
- ASP.NET 3.5程序設計與項目實踐
- AIRIOT物聯網平臺開發框架應用與實戰
- Illustrator CS6設計與應用任務教程
- 計算機應用技能實訓教程
- 從零開始學算法:基于Python
- 產品架構評估原理與方法
- 深入理解MySQL主從原理
- Visual C++網絡編程教程(Visual Studio 2010平臺)
- Go語言從入門到進階實戰(視頻教學版)
- 實戰圖解MACD波段交易技術