O'Reilly logo

Developing Applications with Java™ and UML by Paul R. Reed

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Relationships

Relationships between classes are necessary because object-oriented systems are based on the collaboration of objects to accomplish a particular end goal (articulated in the use-cases). Like a network, relationships define the pathways between classes and serve as the messaging media across which objects can communicate. Relationships also define a context between classes prior to instantiation and as objects after instantiation. They then define how the classes of the application function as an integrated whole.

UML is quite rich in its ability to represent relationships between classes. It supports three types of relationships:

  1. Association: The most common type of UML relationship, an association, defines how objects of one class ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required