July 2001
Intermediate to advanced
656 pages
15h 51m
English
Each end of an association is a role, which has various properties, such as:
name
multiplicity
A role name identifies an end of an association and ideally describes the role played by objects in the association. Figure 27.10 shows role name examples.

An explicit role name is not required—it is useful when the role of the object is not clear. It usually starts with a lowercase letter. If not explicitly present, assume that the default role name is equal to the related class name, though starting with a lowercase letter.
As covered previously during a discussion of mapping designs to code, roles ...
Read now
Unlock full access