Analyst Integration Question:

What is difference between composition, aggregation and association?

Tweet Share WhatsApp

Answer:

Association means two objects are related to each other but can exists without each other, Composition is a form of association where one object is composed of multiple object, but they only exists together e.g. human body is composition of organs, individual organs cannot live they only useful in body. Aggregation is collection of object e.g. city is aggregation of citizens.

Download Integration Programmer PDF Read All 87 Integration Programmer Questions
Previous QuestionNext Question
What are couple of ways to resolve collision in hash table?What is a stateless system?