Composite Pattern

The Composite Pattern allows you to compose objects into tree structures to represent part-whole hierarchies. Composite lets clients treat individual objects and compositions of objects uniformly.

  

原文地址:https://www.cnblogs.com/jasonC/p/3457076.html