list of dots University of Ottawa logo / Université d'Ottawa

User Manual    [Previous]   [Next]   

Role Names

A role name is an additional name attached to an association. In the following example, the word 'supervisor' could be omitted, but it clarifies that the graduate student's professor is called his or her supervisor.


class Person {

class GraduateStudent {
  isA Person;
  Integer id;
  * -- 0..2 Professor supervisor;

class Professor {
  isA Person;

Load the above code into UmpleOnline