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 a nested interface?
What is the practical implementation of inner classes?
Can we reduce the visibility of the inherited or overridden method ?
What is a subclass?
Explain the purpose of composition.
How to define an interface?
Explain what is polymorphism?
What are abstract functions? Why are they used?
What is garbage collection(gc)?
Is @functionalinterface annotation mandatory to define a functional interface? What is the use of @functionalinterface annotation? Why do we need functional interfaces in java?
How many instances can be created for an abstract class?
Can you give some examples of tokens?
What is an abstract property. Give an example?
What is the use of destructive method?
Explain what you understand by function overloading.