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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the access modifiers?

1005


What is difference between static and non-static fields of a class?

1083


What is the difference between a class and a structure?

980


Explain the term constructor

1035


Is @functionalinterface annotation mandatory to define a functional interface? What is the use of @functionalinterface annotation? Why do we need functional interfaces in java?

1146


Can an interface have an inner class?

1031


What are the different principle of OOPS?

991


Does java support multiple inheritance? if not, what is the solution?

964


What is the default access modifier in a class?

1000


What are the main features of oops?

1097


What are virtual functions, base class pointer, derived class pointer, biding references?

976


What is the use if instanceof keyword? And how do refer to a current instance of object?

934


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

924


How a program can be structured using the concept of object oriented programming?

1115


Name some languages which have object oriented language and characteristics?

986