What is inheritance How is it different from aggregation in Java?

The difference is typically expressed as the difference between “is a” and “has a”. Inheritance, the “is a” relationship , is summed up nicely in the Liskov Substitution Principle. Aggregation, the “has a” relationship, is just that – it shows that the aggregating object has one of the aggregated objects.6 Kas 2008

Sizin İçin Seçtik  How much money can you make off Atlas Earth?

Leave a Reply

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

What is inheritance How is it different from aggregation in Java?

The difference is typically expressed as the difference between “is a” and “has a”. Inheritance, the “is a” relationship , is summed up nicely in the Liskov Substitution Principle. Aggregation, the “has a” relationship, is just that – it shows that the aggregating object has one of the aggregated objects.6 Kas 2008

Sizin İçin Seçtik  How inheritance is different from aggregation in Java?

Leave a Reply

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