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...


Differentiate between Aggregation and containment?

Answers were Sorted based on User's Feedback



Differentiate between Aggregation and containment?..

Answer / arul

Aggregation is the relationship between the whole and a
part. We can add/subtract some properties in the part
(slave) side. It won?t affect the whole part.
Best example is Car, which contains the wheels and some
extra parts. Even though the parts are not there we can
call it as car.
But, in the case of containment the whole part is affected
when the part within that got affected. The human body is
an apt example for this relationship. When the whole body
dies the parts (heart etc) are died.

Is This Answer Correct ?    33 Yes 7 No

Differentiate between Aggregation and containment?..

Answer / msh

Aggregation is interobject relationship. This relationship
occurs when one class contains another class.

Is This Answer Correct ?    4 Yes 3 No

Differentiate between Aggregation and containment?..

Answer / kundan lal

There is NO difference between aggregation and containment.
There is a difference, however, between aggregation and
composition.

Is This Answer Correct ?    0 Yes 9 No

Post New Answer

More OOAD Interview Questions

What is a functional interface? What is sam interface?

0 Answers  


Can you think of some nice examples where *multiple* actors are associated with a use case ?

2 Answers   Protech,


Difference Between Attribute and Association.

2 Answers   Protech,


What are a base class, subclass, and superclass?

0 Answers  


What is the default access modifier for a class,struct and an interface declared directly with a namespace?

0 Answers  


Can an interface have an inner class?

0 Answers  


Can a class in java be inherited from more than one class?

0 Answers  


Why do we use oops concepts? What is its advantage?

0 Answers  


Can an interface contain fields?

0 Answers  


Which OOPS concept is used as a reuse mechanism?

0 Answers  


What interface must an object implement before it can be written to a stream as an object?

0 Answers  


What is garbage collection(gc)?

0 Answers  


Categories