I have reviewed a lot of information about these things, but can't understand what is the difference between them? In Fowler's UML Distilled says that Aggreagation is strictly meaningless, so author recommends not to use it in diagrams. Explain, please, when I should use each of them and how it will influence on java code.
There are four kinds of Class relationships
Man
uses a Class Pen
( Pen is still there when man die )Man
has a Class Car
( Car is
still there when Man die )Man
owns a Class Heart
( When Man
die, Heart die )Man
is a Class Human
( Man is a Human )A relationship between classes of objects
Inheritance>Composition>Aggregation>Association