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
Which oops concept is used as reuse mechanism?
What is the @functionalinterface annotation?
Can you create an instance of an abstract class?
what is virtual function and pure virtual function ?
What are the four important foundation concepts of OOP ?
Do we require a parameter for constructors?
How many methods do u implement if implement the serializable interface?
What is Polymorphism, overloading, overriding and virtual?
Write a note about inheritance?
What is Abstract method and how different from Virtual Method?
How to define an interface?
explain the difference between operator overloading and function overloading.
What is a constructor in class?
Is iterator a class or interface? What is its use?
What is an abstraction?