Slide 23
Slide 23 text
3. Interface changes have
limited ripple effect
Advantage of Composition
When the interface of a component class changes, it will break the composite classes
that rely on the old version of the interface. However, the damage is contained and
generally fairly trivial to correct. Because interfaces are not inherited when using
composition, the changes affect only the composite class, but not its clients.