Association:   ^   Aggregation:    O   Composition:    @   Inheritance:    #
                    |                   |                   |                   |
                  <-+->               O-+-O               @-+-@               #-+-#
                    |                   |                   |                   |
                    V                   O                   @                   #

     +--------+       +---------------------+ *
     | Client |------>| Component           |<-----------------------------+
     +--------+       +---------------------+                              |
                      | Operation()         |                              |
                      | Add(Component)      |                              |
                      | Remove(Component)   |                              |
                      | GetChild(int)       |                              |
                      +---------------------+                              |
                                #                                          |
                                |                                          |
                     +----------+--------------+                           |
                     |                         |                           |
              +------+------+       +----------+----------+  children      |
              | Leaf        |       | Composite           |O---------------+
              +-------------+       +---------------------+
              | Operation() |       | Operation()         |
              +-------------+       | Add(Component)      |
                                    | Remove(Component)   |
                                    | GetChild(int)       |
                                    +---------------------+

      +-------+         +-----------+
      | Base  |         | Interface |
      +---^---+         +-----^-----+
         /_\                 /_\     _
          |                   :     (_) OtherInterface
          |                   :      |
          |                   :      |
     +---------+      +----------------+
     | Derived |      | Implementation |
     +---------+      +----------------+

    +------------------------------------------------------+
    |                                                      |  
    +------------------------------------------------------+
    |                                                      |
    |                                                      |
    |                                                      |
    |                                                      |
    +------------------------------------------------------+
    |                                                      |
    |                                                      |
    |                                                      |
    +------------------------------------------------------+

Resources