Composite Pattern
摘要
The Composite pattern relies on object composition to model part–whole relationships and allows clients to work with both individual objects and object compositions consistently. This chapter explains this pattern through simple examples.