The Design Patterns (Gang of Four) book explains the composite pattern. See Composite Pattern
One example of a composite pattern is a file in a filesystem/directory hierarchy. The figure below shows a probable implementation of a filesystem hierarchy using the composite pattern
No comments:
Post a Comment