5.1. Associations and Links
The formal name for a structural relationship that exists between objects is an association. With respect to the Student Registration System (SRS), some sample associations might be as follows:
A Student is enrolled in a Course.
A Professor teaches a Course.
A DegreeProgram requires a Course.
Whereas an association refers to a relationship between classes, the term link can be used to refer to a structural relationship that exists between two specific objects (instances). Given the association "a Student is enrolled in a Course," we might have the following links:
Jackson Palmer (a particular Student object) is enrolled in Math 101 (a particular Course object).
Helmut Schmidt (a particular Student object) is enrolled ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access