Diagramming Conventions
 

Class Relationships

Relationships between classes are shown in diagrams with a line connecting the classes as in the example below:

UML Diagramming Convention showing the Class of  PATIENT and the Class of HOSPITAL PROVIDER SPELL and the Relationship that exists between these two classes. A HOSPITAL PROVIDER SPELL

Information concerning the relationship is conveyed by the number at the top and bottom of the connecting line, known as Relationship Cardinality.