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.
Complaint, as provided under section 2(d) of CrPC
Joint secretary from which of the following ministry is not represented in FSSAI
Untouchability is abolished and it’ s practice in any form is abolished as per which Articla of the Constitution?
Which of the following statement is correct?
What is the punishment for providing false evidence under the Companies Act?
According to Regulation 2 of SEBI (Prohibition of Fraudulent and Unfair Trade Practices Relating to Securities Market) Regulations, 2003, "fraud" in th...
Plaint is covered under which order of CPC?
A member of an All- India service and civil service of any States holds office __________.
In which section of Indian Contract Act 1872 provision related to the legal maxim ‘Ex nudo pacto actio non oritur’ is added?
In a criminal case, to whom copies of judgement must be provided?