You are designing a system where objects need to be composed…
You are designing a system where objects need to be composed into tree structures to represent part-whole hierarchies (e.g., a file system with folders and files). Both individual objects and groups of objects should be treated uniformly. Which pattern is most appropriate?