Next: Example: Inheritance vs Aggregate
Up: Lecture 2: Classes, Objects,
Previous: Inheritance Relationship with reallocated
- Inheritance to separate commonality from specifics
- Aggregation to show composite relationships
- Example:
- Parent: UserInformation
- Child1: LecturerInformation
- Child2: StudentInformation
- Attributes:
- Aggregation: to Classification
- Multiplicity at StudentInformation: 0..*
- Multiplicity at Classification: 1
Ananda Amatya
11/3/1999