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

What is aggregation and composition ?

Answer Posted / balbir

Aggregation differs from ordinary composition in that it
does not imply ownership. In composition, when the owning
object is destroyed, so are the contained objects. In
aggregation, this is not necessarily true. For example, a
university owns various departments (e.g., chemistry), and
each department has a number of professors. If the
university closes, the departments will no longer exist,
but the professors in those departments will continue to
exist. Therefore, a University can be seen as a composition
of departments, whereas departments have an aggregation of
professors. In addition, a Professor could work in more
than one department, but a department could not be part of
more than one university

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why to use nested classes in java? (Or) what is the purpose of nested class in java?

1069


How do you reverse a list?

995


Do extraneous variables affect validity?

909


When parseint method can be used?

944


What is ternary operator?

1000


What is java oops?

1066


What is the functionality of the stub?

1021


What's the difference between int and integer in java?

1152


What is derived datatype?

1212


What is difference between char array and string?

1110


What is better - 'bit-shift a value' or 'multiply by 2'?

1186


What is constructor and its types?

1140


Can java run on google chrome?

1187


Does sprintf allocate memory?

1102


What is constant in programming?

1102