What is has a and IS-A 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 uses a relationship in Java?

Leave a Reply

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