Difference between Composition and Aggregation
Answer Posted / paul howard
Composition can be used to model by-value aggregation which
is semantically equivalent to an attribute. In fact
composition was originally called aggregation-by-value in an
earlier UML draft with “normal” aggregation being thought of
as aggregation-by-reference. The definitions have changed
slightly but the general ideas still apply. The distinction
between aggregation and composition is more of a design
concept and is not usually relevant during analysis.
| Is This Answer Correct ? | 14 Yes | 5 No |
Post New Answer View All Answers
Difference between composition and inheritance ?
What are the limitations of oops?
What is meant by overloading functions and operators?
What is the base type from which all structs inherit directly?
What is bootstrap, extension and system class loader?
What is the need of multiple inheritance?
Can an interface contain fields?
What are the different types of arguments?
Is it possible to create partial structs, interfaces and methods?
Can we override static methods? Why?
What is a nested interface?
What is an interface?
What is data encapsulation and what is its significance?
Explain the mechanism of composition?
What are different types of arguments?