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
Can we use static method definitions in interfaces?
What is the difference between oop and sop?
What are the interfaces you used in beans?
What does it mean that a method or class is abstract?
Explain about instance in object oriented programming?
Explain what a method is?
Explain the implementation phase with respect to oop?
Do we require a parameter for constructors?
What is function override?
How many methods are there in the serializable interface?
Which OOPS concept exposes only the necessary information to the calling functions?
Can we override static methods? Why?
Explain about the relationship between object oriented programming and databases?
What are virtual functions, base class pointer, derived class pointer, biding references?
What are abstract classes?