In domain modeling class diagrams, a relationship is the
connection between Java classes or interfaces or between
Enterprise JavaBeans (EJB) enterprise
beans.
You can use several relationships to define the structure between Java classes or interfaces or between enterprise
beans:
- Association relationships imply that instances of one class connect
to instances of another class.
- Dependency relationships imply that a change to one class might
affect another class.
- Extends relationships imply that one class is a specialization
of another class.
- Implements relationships imply that one class provides a specification
and the other class implements the specification.
You can also use note attachment relationships to provide additional
information about diagram elements.