Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Difference between Composition and Aggregation

Answers were Sorted based on User's Feedback



Difference between Composition and Aggregation..

Answer / 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

Difference between Composition and Aggregation..

Answer / paul howard

Composition can be used to model by-value aggregation which
is semantically equivalent to an attribute. In fact
composition was originally called aggregation-by-value in an
earlier UML draft with “normal” aggregation being thought of
as aggregation-by-reference. The definitions have changed
slightly but the general ideas still apply. The distinction
between aggregation and composition is more of a design
concept and is not usually relevant during analysis.

Is This Answer Correct ?    14 Yes 5 No

Post New Answer

More OOAD Interview Questions

What is overriding?

0 Answers   MindCracker,


Explain the rationale behind object oriented concepts?

0 Answers  


Why should project managers complete hard problems first in an OOSAD project?

3 Answers  


What is constructor and virtual function? Can we call virtual funciton in a constructor?

0 Answers  


When do you prefer to use composition than aggregation?

1 Answers   InfoAxon Technologies, Protech,


What is an abstraction and why is it important?

0 Answers  


Can you explain primordial class loader?

0 Answers  


What is the use of interface?

0 Answers  


What is a pure virtual function?

3 Answers  


Why dynamic loading is used in object-oriented programming?

0 Answers  


What do you mean by polymorphism?

0 Answers   InterGraph, Ittiam Systems,


What is the order of call of constructors in inheritiance?

0 Answers  


Categories