Role name in association relationship
From the UML bible, about role : Role: A role name explains how an object participates in the relationship. Each object needs to hold a reference to the associated object or objects. The reference is held in an attribute value within the object. When there is only one association then there is only one attribute holding a reference. What does this sentence mean? Can anyone please offer an example to explain it? Roles:A role name explains how an object participates in the relationship. You have two classes, Professor and Book and they are associated as in the following diagram: The role gives a