Start learning 50% faster. Sign in now
Aggregation is a type of association that represents a "whole-part" relationship between two classes. The key characteristic is that the part (child object) can exist independently of the whole (parent object). For instance, in a Team class and Player class, a Player can exist without being associated with a Team . Aggregation is implemented by using references, where one class has an attribute referencing another class. This design principle promotes flexibility and modularity. Aggregation is often represented with a hollow diamond in UML diagrams. Why Other Options Are Wrong Option B : "Inheritance" Inheritance represents an "is-a" relationship, not a "whole-part" relationship. It is used to share functionality between classes, not to model part-whole dependencies. Option C : "Composition" Composition is similar to aggregation but with a crucial difference: the part cannot exist independently of the whole. For example, a Car and its Engine share a composition relationship because an engine has no meaning outside the car. Option D : "Association" Association is a broader concept that describes any relationship between classes. Aggregation is a specific type of association. Option E : "Polymorphism" Polymorphism is unrelated to class relationships and focuses on method behavior.
Choose the option which can be substituted for the given words/sentence.
One who pretends to have knowledge or skills that they do not actuall...
After weeks of negotiations, the company finally agreed to capitulate and accept the union's demands for better wages and working conditions.
...Select the most appropriate option to substitute the underlined segment in the given sentence. If there is no need to substitute it, select ‘No subst...
Person who insists on adherence to formal rules or literary meaning
a condition, event, or person that is the cause of an important change
Select the option that can be used as a one-word substitute for the given group of words/phrase.
A phrase or words written in memory of a person ...
In the questions given below out of five alternatives, choose the one which can be substituted for the given word/sentence.
Fear of books : <...
Even though G-20 countries had disagree on some issues, they ended their summit on a amicable note.
I. A number of countries, including India, are now earned (A) the use of other currencies to avoid (B) the U.S. dollar and its hegemonic role in g...