兩種:透明組合模式和安全組合模式安全
組成對象:抽象組件 樹葉組件 樹枝組件.net
下面這篇博客寫的很清楚對象
https://blog.csdn.net/jialinqiang/article/details/8946607blog