Skip to content
zoeyhuang edited this page Mar 18, 2015 · 8 revisions

Intent:

To "compose" objects into tree structures to represent part-whole hierarchies. Implementing the composite pattern lets clients treat individual objects and compositions uniformly.

Structure:

Example:

CompositeClient

Use Composite Pattern:

Reference:

http://en.wikipedia.org/wiki/Composite_pattern

Clone this wiki locally