<<< Difference between inheritance and composition | Index | Types of Composition >>> |
Composition aids modularity.
That is, composition allows to build large and complex software from small components.
Breaking complexity into smaller pieces helps to
increase stability
reduce number of baggage
simplify testing of individual classes and components.
<<< Difference between inheritance and composition | Index | Types of Composition >>> |