What is the difference between aggregation and composition? Give an example of each
What will be an ideal response?
In aggregation, one object acts as the "whole" while the second object plays the role of the "part." The whole object is called an aggregate. If an aggregate relationship is very strong, it is called "composition." In composition, the part belongs to one, and only one, whole object. Moreover, the part can exist only as long as the whole exists. The "whole" in such a relationship is called a composite and in a class diagram is represented by a filled diamond.
You might also like to view...
Which of the following describes a measurement scale in which respondents rate the objects by placing a mark at the appropriate position on a line that runs from one extreme of the criterion variable to the other?
A) a comparative scale B) a continuous rating scale C) an itemized rating scale D) a Likert scale E) extreme scaling
Which of the following product mix pricing strategies involves pricing products that can only be used with the main product?
A) by-product pricing B) product bundle pricing C) captive product pricing D) product line pricing E) optional product pricing
Cash includes:
a. currency. b. money orders. c. bank checks. d. checking accounts and time deposits. e. all of the above.
Which of the following is used for titles of subdivisions of published works, such as chapters of a book?
A) quotation marks B) underline C) italics