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
What is the use of ‘finalize’?
What is the diffrence between an abstract class and interface?
Differences between functional programming and object-oriented programming?
What is meant by function overloading and function overriding?
What is polymorphism? When is it employed? give an example.
What is meant by overloading functions and operators?
What is difference between encapsulation and abstraction?
Explain about uml?
What are Classes and Objects?
Do structs support inheritance?
Can we override a method by using same method name and arguments but different return types?
What is the function of pure virtual functions?
Which keyword can be used for overloading?
What do you mean by abstract class?
Explain the term constructor