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
Difference between class and an object?
What are the features of encapsulation ?
Why do we separate interface from implementation?
Explain about object oriented databases?
What is data abstraction? what are the three levels of data abstraction with Example?
What are the major differences between late and dynamic binding?
What is Abstract method and how different from Virtual Method?
How to make a class accessible as a web service?
What is meant by function overloading and function overriding?
What is the difference between abstract & interface?
Can you use virtual, override or abstract keywords on an accessor of a static property?
Explain about Overloading vs Overriding ?
Explain about instance in object oriented programming?
Can a class implement two interfaces having default method with same name and signature?
Explain what is object oriented programming language?