Answer :

When you look at applications, some relationships are Has-a relationships meaning objects are in a member field of other objects.

In Java, a Has-A relationship is additionally called composition. it's conjointly used for code re-usability in Java. In Java, a Has-A relationship merely means an instance of 1 category features a respect to associate degree instance of an other category or an alternative instance of identical category.

Types of relationships among objects are inheritance , association, composition and aggregation. Association is a relationship between 2 objects. In alternative words, association defines the multiplicity between objects.

To learn more about Java here

brainly.com/question/13153130

#SPJ4