We should use aggregation if part of the interface is not used or has to be changed to avoid an illogical situation . We only need to use inheritance, if we need almost all of the functionality without major changes. And when in doubt, use Aggregation.6 Kas 2008
Why is aggregation better than inheritance?
We should use aggregation if part of the interface is not used or has to be changed to avoid an illogical situation . We only need to use inheritance, if we need almost all of the functionality without major changes. And when in doubt, use Aggregation.6 Kas 2008