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