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.
Consider the following statements regarding bridge loan:
(A) It is a loan made by a bank for a longer period to make up for permanent shortage...
Finance Commission of India was formed to define the financial relation between the ------ and ------
What is the name of the solar probe that NASA is going to launch in 2018 to explore the sun’s outer atmosphere?
Which of the following banks built the National Stock Exchange of India (NSE)?
Maximum limit of SLR is
DRT and SARFAESI are the two methods adopted by Bank for
The Reserve Bank of India was set up on the basis of the recommendations of the ________ Commission.
IMPS-MMID is a ________ digit numeric code.
PCA refers to ?
The main purpose of preparing a Bank Reconciliation Statement is: