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

What is a string what operation can be performed out with the help of a string?

1109


What do you mean by stack?

1202


What is empty string literal in java?

1107


What does it mean to be immutable?

1030


What is the difference between state-based unit testing and interaction-based unit testing?

988


what is difference betweem home interface and remote interface?

2682


Explain the advantages of packages in java?

970


How does a for loop work java?

1099


How do you create a reference in java?

1024


What is use of super keyword?

1016


How do you define a singleton class?

1154


Which of the classes will have more memory allocated?

1019


What is bool mean?

1141


How can you make a class serializable in java?

1043


What is an object's lock and which object's have locks in java programming?

1107