Start learning 50% faster. Sign in now
Composition is a "has-a" relationship where one object contains another, and the contained object cannot exist independently of the parent. 1. Dependency: For instance, an engine is part of a car and cannot function independently outside of it. 2. Tight Coupling: The lifecycle of the child object depends entirely on the parent object. If the parent is destroyed, the child is destroyed too. 3. Reusability: Composition fosters code reuse by enabling modular design without strict inheritance hierarchies. Option A exemplifies composition through its strong containment relationship, central to creating complex, interdependent systems. Why Other Options Are Incorrect: • B) Aggregation: Denotes a weaker "has-a" relationship, where components can exist independently. • C) Inheritance: Refers to property sharing, not containment. • D) Polymorphism: Focuses on method behavior variability. • E) Association: A general relationship without specific containment rules.
What does an 'Overdraft' facility in banking imply?
The European country which is the guarantor of Bank of Central African States is
Axis Bank has its Head office in __________ and Registered office in _________ .
London Metal Exchange is owned by which one of the following?
Which one of the following is not the Credit Rating Agency?
Bandhan Express will provides connectivity between which of the following two countries?
Any rupee note, which has a political slogan is not a legal tender as per.
Which of the following acts empowers RBI to regulate Non-Scheduled Banks?
How many Banks were nationalized in the Second Phase of Nationalization of Banks?