Differentiate between Aggregation and containment?
Answers were Sorted based on User's Feedback
Answer / arul
Aggregation is the relationship between the whole and a
part. We can add/subtract some properties in the part
(slave) side. It won?t affect the whole part.
Best example is Car, which contains the wheels and some
extra parts. Even though the parts are not there we can
call it as car.
But, in the case of containment the whole part is affected
when the part within that got affected. The human body is
an apt example for this relationship. When the whole body
dies the parts (heart etc) are died.
| Is This Answer Correct ? | 33 Yes | 7 No |
Answer / msh
Aggregation is interobject relationship. This relationship
occurs when one class contains another class.
| Is This Answer Correct ? | 4 Yes | 3 No |
Answer / kundan lal
There is NO difference between aggregation and containment.
There is a difference, however, between aggregation and
composition.
| Is This Answer Correct ? | 0 Yes | 9 No |
Explain method overriding.
Explain about encapsulation?
Where shall I go for Package Diagram?
What is operator overloading and polymorphism?
0 Answers ITC Indian Tobacco Company,
Define Destructor?
Is it possible to override private virtual methods?
When will you use an interface and abstract class?
Describe inheritance and non-inheritance of a derived class?
What is guard condition?
8 Answers Mannar Company, Syntel,
Explain about object oriented programming?
What is constructor and virtual function? Can we call virtual funciton in a constructor?
What is Polymorphism?
7 Answers MindCracker, Protech, TCS,