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
If a class inherits an interface, what are the 2 options available for that class?
Can an interface have an inner class?
What are the rules to define a functional interface?
Is iterator a class or interface? What is its use?
What is the base type from which all structs inherit directly?
What is bootstrap, extension and system class loader?
Why is OOP good?
Can a function be overloaded based on return types?
What are the limitations of inheritance?
Difference between abstraction and implementation hiding ?
Is it possible to provide method implementations in java interfaces? If possible, how do we provide them?
Write a note on encapsulation?
What is single and multiple inheritance?
Explain about uml?
What is abstraction? How does it differ from encapsulation