Difference between Composition and Aggregation
Answers were Sorted based on User's Feedback
Answer / benjamin jacob
Composition : Defines a strong-coupled relationship between
two entities, where the one entity is part of another, and
both need each other for their existence. e.g. Human body
and the Heart.
Aggregation : Defines a weak-coupled relationship between
two entities, where one entity could be part of another, but
either can exist without the other, independantly. e.g.
School and teacher.
| Is This Answer Correct ? | 85 Yes | 5 No |
Answer / 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 |
Explain about the relationship between object oriented programming and databases?
Explain about instance in object oriented programming?
How a program can be structured using the concept of object oriented programming?
Explain about realistic modeling?
What do you mean by abstract classes?
What are virtual functions, base class pointer, derived class pointer, biding references?
0 Answers HPCL, Hughes Systique Corporation,
What is the super keyword?
Explain about overriding polymorphism?
How many methods do u implement if implement the serializable interface?
Write a note about inheritance?
Can we override static methods of a class?
Can a class in java be inherited from more than one class?