What is the difference between association and composition relation ship in uml..
For Example..
class Student
{
Prof p;
//other features..
};
class Prof
{
Student s;
//other features..
};
where above code is an example for composition relationship in c++..
And in same way what is the coding for association relationship...?
While working in uml how to implement this and how to find which relationship should be prefered?
In same way how to implement multiplicity concept in this relation's...?
Explain this thing with some real time example as detailed as possible.....
Thank u in advance..