uOttawaUniversity of Ottawa - Canadas University
list of dots

Umple User Manual    [Previous]   [Next]   

Loading

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.

Example


class Person {
  name;
}

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

class Professor {
  isA Person;
  rank;
}
      

Load the above code into UmpleOnline