两种:透明组合模式和安全组合模式安全
组成对象:抽象组件 树叶组件 树枝组件.net
下面这篇博客写的很清楚对象
https://blog.csdn.net/jialinqiang/article/details/8946607blog