October 2002
Intermediate to advanced
288 pages
5h 4m
English
Scenarios are examined to determine if a relationship should exist between two classes. Messages between objects mean that the objects must communicate with each other. Associations and/or aggregations provide the pathway for communication.
Relationships may also be discovered based on the signature of an operation. This is discussed in Chapter 7.
In the Add a Course Offering scenario, the communicating objects along with the relationship-type decisions that have been made are shown in Table 6-1.
| Sending Class | Receiving Class | Relationship Type |
|---|---|---|
| ProfessorCourseOptions | AddACourseOffering | Aggregation |
| AddACourseOffering | ProfessorCourseManager | Association ... |