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
What is polymorphism and abstraction?
Explain about encapsulation?
What is super keyword?
What is the super keyword?
What is the @functionalinterface annotation?
Write a note about inheritance?
What is the difference between an error and an exception?
What are all the operators that cannot be overloaded?
What is meant by inheritance? what are the advantages of inheritance?
explain dynamic binding
Explain about the design phase?
Difference between abstraction and implementation hiding ?
How can I be thrown polymorphically?
Can we override a method by using same method name and arguments but different return types?
What is the function of dynamic typing?