Question
In OOP, what term best describes the relationship where
one object is a part of another but cannot exist independently?Solution
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 is the maximum aggregate withdrawal limit for a small account per month where KYC is not completed ? 
- At 31 Mar, management projects a worst-case stress showing net technical provisions plus URR exceed current solvency margin by 10%. Regulator requires p... 
- A bank has statutory reserve requirement of 25% of Net Profit before appropriations. Net Profit before appropriations = ₹40 crore. Transfer to reserve... 
- Which portal monitors outstanding dues to MSEs? 
- A customer reports unauthorized transactions on their digital banking app. Under RBI’s directions, if the customer informs the bank within 3 days, wha... 
- As per Schedule I, any kind of disposal or transfer of business assets made by an entity on a permanent basis qualifies as supply, even though it is wit... 
- Who is responsible for ensuring compliance with the obligations imposed under Chapter IV of the PML Act and for reporting to the Financial Intelligence ... 
- A borrower has defaulted on a term loan for over 90 days. The bank categorizes the account as an NPA. Later, the borrower partially repays the overdue a... 
- A bank’s Profit before appropriations = ₹20 crore. Statutory reserve requirement is 25%. The bank also transfers ₹2 crore to Investment Fluctuatio... 
- A bank finds it difficult to repay the short term deposits on maturity because the funds of the bank are locked in ____