IS-A relationship in OOP Java?

An IS-A relationship is inheritance. The classes which inherit are known as sub classes or child classes. On the other hand, HAS-A relationship is composition. In OOP, IS-A relationship is completely inheritance .

Sizin İçin Seçtik  Which is better aggregation or composition?

Leave a Reply

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