Difference between Composition and Aggregation
Answer Posted / 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 |
Post New Answer View All Answers
What are abstract methods?
Are constructors inherited? Can a subclass call the parent's class constructor? When?
Explain about the design phase?
Can encapsulation be called as a security device?
Name the different creational patterns in object oriented design?
Explain about the analysis phase?
What is sealed modifiers?
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 reduce the visibility of the inherited or overridden method ?
Which OOPS concept exposes only the necessary information to the calling functions?
What are a base class, subclass, and superclass?
Explain persistence?
Difference between abstraction and implementation hiding ?
What is Overloading ? Is it similar to overriding ?
What is an abstract property. Give an example?