What I would like to ask is that if one class has a variable of array, should I include it as attribute along with the association or only the association?
So, for example, if I want to draw a simple diagram about association between professor and lecture, which side would be correct (Upper one or the lower one)? - Lecture may have more than one instructor
You would use the dot notation with role names like this:
It means that Professor
has *
lectures
as owned property and vice versa Lecture
has 1..*
teachers
.
The dot and role name are located "on the opposite site" of the owning class.