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 function override?
Can an interface contain fields?
What is meant by function overloading and function overriding?
Can we have a default method definition in the interface without specifying the keyword "default"?
What is the difference between an Abstract class and Interface?
what is virtual function and pure virtual function ?
If a method definition has been specified in the base class and the interface which the class is implementing, which definition will be picked if we try to access it using interface reference and class object?
Explain what is single and multiple inheritance?
What are the methods required to create changes in subclasses?
What is the benefit of using inheritance?
What is a pure virtual function?
State some of the advantages of object oriented programming?
Can an interface inherit from another interface?
Can you call the base class method without creating an instance?
How can we restrict inheritance for a class so that no class can be inherited from it?