Home > DeveloperSection > Interviews > What is difference between aggregation and composition in java?

Posted on    March-28-2015 12:23 AM

 Java Java 
 1 Answer(s)
  421  View(s)
Rate this:

Mayank Tripathi
Mayank Tripathi

Total Post:807

Posted on    March-28-2015 12:50 AM

Aggregation represents weak relationship whereas,
Composition represents strong relationship

For example: bike has an indicator (aggregation) but bike has an engine (composition).

Modified On Mar-28-2015 12:52:08 AM

Don't want to miss updates? Please click the below button!

Follow MindStick