Question
What is 'inheritance' in Object-Oriented
Programming?Solution
Inheritance allows a child class (subclass/derived class) to inherit attributes and methods from a parent class (superclass/base class), enabling code reuse and establishing an IS-A relationship. Example: SavingsAccount and CurrentAccount both inherit from a BankAccount parent class, sharing common properties (accountNumber, balance) while having their own specific features (interestRate for Savings, overdraftLimit for Current). Java supports single inheritance; Python supports multiple inheritance.
The global IP revenue pool that GIFT City aims to tap into is valued at how much?Â
Wholesale Price Index (WPI) inflation in August 2025 touched a four-month high of:Â
How much liquidity did the RBI announce it would inject through OMO purchases of Government Securities?Â
The BlueBird Block-2 satellite launched by ISRO had a payload weight of approximately:Â
What major change did the Infosys Science Foundation implement in the Infosys Prize criteria starting May 15?
What is Oxford’s Word of the Year 2024?
Which global bank recently partnered with India’s NPCI International to expand UPI services in the UAE?
Where will the New Greenfield Airport be developed in Gujarat?
The JANANI platform launched by the Ministry of Health and Family Welfare is primarily related to:Â
When is the Z-Morh tunnel, connecting Kashmir and Ladakh, scheduled to be inaugurated?