Back In the print window choose "Save as PDF" as the destination
NOTE.CS

Association, Aggregation, Composition

1 topic ยท 28 Nov 2026
1

Association, Aggregation, Composition

OOP
  • Association โ€” a general relationship: a Teacher teaches a Student.
  • Aggregation (has-a, weak) โ€” the part can exist alone: a Department has Teachers; if the department closes, teachers still exist.
  • Composition (has-a, strong) โ€” the part cannot exist without the whole: a House has Rooms; delete the house, the rooms are gone.