Composite: Related Patterns
Chain of Responsibility
- The Chain of Responsibility and Composite patterns can be combined by adding parent links, so children can get information from an ancestor without knowing which ancestor.
Visitor
- The Visitor pattern allows one class to encapsulate an operation that the Composite pattern would spread over multiple classes.