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

explain dynamic binding

1002


What is a try/ catch block?

971


A class inherits from 2 interfaces and both the interfaces have the same method name as shown below. How should the class implement the drive method for both car and bus interface?

948


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

920


Define exceptions?

909


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

950


What does it mean that a method or class is abstract?

950


What do you mean by "explicitly implemeting an interface". Give an example?

998


What is Overloading ? Is it similar to overriding ?

990


what is full form OOP?

1049


How many methods are there in the serializable interface?

938


What are Classes and Objects?

1011


What do you mean by data hiding?

1114


Can constructors be parameterized?

961


Explain method overriding.

1049