Role Names
[Previous]  [Next] 
|
User Manual [Previous]  [Next] Role NamesA 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. Exampleclass Person { name; } class GraduateStudent { isA Person; Integer id; * -- 0..2 Professor supervisor; } class Professor { isA Person; rank; } Load the above code into UmpleOnline |