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.
Statistics Day is observed on June 29 in India to honor which notable figure in the field of statistics and economic planning?
The Asian Infrastructure Investment Bank (AIIB) has invested in the Sustainable Energy Infra Trust (SEIT), India's largest renewable energy Infrastructu...
Ashtadhyayi, is a Sanskrit treatise on grammar, written in the 6th to 5th century BCE by _________.
___________ is mutual funds writing off the principal amount and the interest in case of a default?
'Hydraulic brakes' work on the principle of –
SBI Life Insurance launched 'IdeationX', an initiative engaging B-School students to innovate in the ______ sector.
Consider the Following states about “Anchal Abhiyan”:
I. This Abhiyan has been launched in Haryana.
II. The Abhiyan is about...
Which online payment bank become the official digital payments partner for Pradhanmantri Sangrahalaya?
Which one of the following does not comes under market infrastructure institutions (MIIs)?
PADMA, the Centralised Pay System for Indian Coast Guard has recently been launched. What does D stand for?