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 is the difference between inheritance and 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  Is there inheritance in aggregation?

Leave a Reply

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