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

Sizin İçin Seçtik  Is a stronger form of aggregation?

Leave a Reply

Your email address will not be published. Required fields are marked *

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

Sizin İçin Seçtik  What are the 5 SCP classes?

Leave a Reply

Your email address will not be published. Required fields are marked *