Question
Which of the following correctly describes the concept
of 'encapsulation' in OOP?Solution
Encapsulation is the OOP principle of wrapping data and code together inside a class, and controlling access through access modifiers (private, protected, public). Private attributes are accessed only through public getter/setter methods — this is data hiding. Example: A BankAccount class keeps balance private and exposes only deposit() and withdraw() methods, preventing direct manipulation of the balance variable.
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?