Is a or has a relationship Java?

In Java, we have two types of relationship: Is-A relationship: Whenever one class inherits another class, it is called an IS-A relationship. Has-A relationship: Whenever an instance of one class is used in another class, it is called HAS-A relationship.

Sizin İçin Seçtik  What is composition and aggregation in Java with example?

Leave a Reply

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

Is-a or has a relationship Java?

In Java, we have two types of relationship: Is-A relationship: Whenever one class inherits another class, it is called an IS-A relationship. Has-A relationship: Whenever an instance of one class is used in another class, it is called HAS-A relationship.1 Ara 2021

Sizin İçin Seçtik  Kalp ritim bozukluğu EKG de belli olur mu?

Leave a Reply

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