
244 C++ Programming
although the main object is destroyed. For example, even if the metal object is destroyed, the
manufacturing date is not (Figure 5.6).
Composition shows strong association, while aggregation shows weak association.
Let us discuss another example of composition and aggregation. When a person has a nose,
ear, mouth, and such, it is a composition. Whereas a person having an address is aggregation.
When the person is no more, the nose, ear, mouth, and such of the person do not exist. How-
ever, the address of the person exists after his death which is aggregation.
5.11 Advantages/Disadvantages of Inheritance
Let us summarize the ...