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
What is a string what operation can be performed out with the help of a string?
What do you mean by stack?
What is empty string literal in java?
What does it mean to be immutable?
What is the difference between state-based unit testing and interaction-based unit testing?
what is difference betweem home interface and remote interface?
Explain the advantages of packages in java?
How does a for loop work java?
How do you create a reference in java?
What is use of super keyword?
How do you define a singleton class?
Which of the classes will have more memory allocated?
What is bool mean?
How can you make a class serializable in java?
What is an object's lock and which object's have locks in java programming?