Composite | Cheat Sheet
Structural Pattern — Design Patterns Series
Composite is used for mapping part-whole hierarchies with object composition in tree structures. With this you have a consistent handling of individual objects as well as object compositions. Real-life examples are folder structures of operating systems or rank systems in military or companies.