Java - Association , Aggregation & Composition
Association :
- Object can have independent life cycle
- No ownership between objects.
- For Example,
If we remove any student no need to remove teacher.
If we remove any teacher no need to remove student.
Aggregation:
If we remove battery from phone we need to wait for another phone.
Composition:
Comments
Post a Comment