What is uses a relationship in Java?

Dependence (Uses-A) Relationship in Java When we create an object of a class inside a method of another class , this relationship is called dependence relationship in Java, or simply Uses-A relationship. In other words, when a method of a class uses an object of another class, it is called dependency in java.

Sizin İçin Seçtik  Is aggregation inherited Java?

Leave a Reply

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