There are four kinds of Class relationships
- Association: uses a
Ex:a ClassManuses a ClassPen( Pen is still there when man die ) - Aggregation: has a
Ex:a ClassManhas a ClassCar( Car is
still there when Man die ) - Composition: owns a
Ex:a ClassManowns a ClassHeart( When Man
die, Heart die ) - Inheritance: is a
Ex:a ClassManis a ClassHuman( Man is a Human )
A relationship between classes of objects
Inheritance>Composition>Aggregation>Association