Composite Design Pattern
Composite is a structural pattern which composes objects into tree-like structures to represent part-whole hierarchies.
Two standard examples are:
EmployeeandBoss-Bossis anEmployee,Bosscan have manyEmployees(some of them can beBossesas well)Resource,FolderandFile-FileandFolderareResources,Foldercontains manyResources(some of can beFiles, someFolders)
http://en.wikipedia.org/wiki/Composite_pattern
End of theory, let's get back to work!
