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 virtual?
What do you mean by operator overloading?
Describe inheritance and non-inheritance of a derived class?
What are the various types of constructors?
What is the use of destructive method?
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?
Can we have default method with same name and signature in the derived interface as the static method in base interface and vice versa?
What are the interfaces you used in beans?
Explain about a class in oop?
What is the order of call of constructors in inheritiance?
What do you mean by data hiding?
Why dynamic binding is used in object-oriented programming?
Explain basic concepts of OOPS?
What is constructor and virtual function? Can we call virtual funciton in a constructor?
Give any criteria when you use an abstract class and an interface?