Start learning 50% faster. Sign in now
Get Started with ixamBee
Start learning 50% faster. Sign in nowAggregation 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.
As of 2023, how many passengers did Delhi's Indira Gandhi International Airport handle, making it one of the top 10 busiest airports in the world?
Consider the following statements with reference to the New Development Bank:
I. The New Developme...
How much has the Uttar Pradesh government allocated to improve veterinary infrastructure, including new operating theatres and outpatient buildings?
Following the recent announcement by the Reserve Bank of India, what is the revised Additional Factor of Authentication (AFA) limit for e-mandates on ca...
How many medals did Indian para athletes win at the Hangzhou Asian Para Games, creating a historic record?
Where was the first BRICS summit held?
As per CCPI, 2023; India is the only G-20 country in the top 10 ranks. The first three ranks in the overall ranking were grabbed by
In which state did the Joint Military Exercise 'Desert Cyclone 2024' between India and UAE take place, and what is the primary focus of this exercise?
Which one of the following IITs have recently created a new system for a hybrid unmanned vehicle that can operate both underwater and in the air?
What is the main feature of MuleHunter, launched by the RBI?