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?

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between aggregation and composition?

954


Define Data Abstraction. What is its importance?

984


Explain about a class?

1027


Name the different creational patterns in object oriented design?

996


What do you mean by abstract class?

1060


What is the main difference between overloading and overriding?

1100


What is the difference between new and override?

1036


Explain static binding

1022


What is the significance of encapsulation?

1004


Can we override a method by using same method name and arguments but different return types?

947


Can you create an instance for an abstract class?

945


Explain what you understand by function overloading.

975


What does the “abstract” keyword mean in front of a method? A class?

981


What is inheritance in java?

1282


Explain method overriding.

1104