Difference between Composition and Aggregation

Answer Posted / benjamin jacob


Composition : Defines a strong-coupled relationship between
two entities, where the one entity is part of another, and
both need each other for their existence. e.g. Human body
and the Heart.

Aggregation : Defines a weak-coupled relationship between
two entities, where one entity could be part of another, but
either can exist without the other, independantly. e.g.
School and teacher.

Is This Answer Correct ?    85 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we use static method definitions in interfaces?

551


What is the difference between oop and sop?

748


What are the interfaces you used in beans?

515


What does it mean that a method or class is abstract?

516


Explain about instance in object oriented programming?

561






Explain what a method is?

613


Explain the implementation phase with respect to oop?

550


Do we require a parameter for constructors?

550


What is function override?

584


How many methods are there in the serializable interface?

545


Which OOPS concept exposes only the necessary information to the calling functions?

682


Can we override static methods? Why?

510


Explain about the relationship between object oriented programming and databases?

515


What are virtual functions, base class pointer, derived class pointer, biding references?

540


What are abstract classes?

601