Java Objects Relationship

There are different relationships between objects.

IS-A

extends or implements means IS-A relationship.

For example, Apple extends Fruit means apple is a fruit, but fruit is not apple.

HAS-A

HAS-A relationship contains Assocation, Aggregation and Composition.

_config.yml

This relationship stands for one-to-one, one-to-many or many-to-many.

_config.yml

Dependency

A dependency relationship indicates that changes to one object can cause changes in another object.

Written on July 28, 2018