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 constructor in class?
What is the difference between an interface and abstract class?
Explain about multiple inheritance?
Why is message passing between the objects important?
What is difference between polymorphism and normalization?
Difference between abstraction and implementation hiding ?
Which OOPS concept exposes only the necessary information to the calling functions?
Describe inheritance and non-inheritance of a derived class?
What does the “abstract” keyword mean in front of a method? A class?
What is the use if instanceof keyword?
Define Initialisation Purpose.
Is it possible to create partial structs, interfaces and methods?
What is overriding?
Explain the different types of constructors
Explain what is meant by polymorphism?