Question
Which OOP principle is most closely related to the
concept of "information hiding"?Solution
While abstraction hides complexity, encapsulation specifically refers to bundling data (attributes) and methods (functions) that operate on the data into a single unit (class) and restricting direct access to some of the object's components (information hiding), typically through access modifiers like private.
A certain sum is invested at a compound interest rate, compounded annually, which grows to Rs. 12,240 after 2 years and to Rs. 17,625.6 after 4 years. I...
A man invested certain sum at 8.5% p.a. simple interest for his son who was 20 years old. If the amount received by the son when he was 26 years old is ...
If you invest Rs. 5,000 in a fixed deposit account with an annual interest rate of 8%, compounded annually, how much money will you have after 3 years?
Atul invested in scheme A and B that provide simple interest at the rate of 12% and 15% for 3 years and 5 years, respectively. Interest received from sc...
Aman invested Rs. 6,500 in scheme ‘Alpha’ which offered compound interest compounded annually at 10% per annum for 3 years. He also put Rs. ‘P’ ...
The difference between the simple interest obtained on two principals for a period of 4 years at 5% p.a. rate of interest is Rs.8...
Veeru invested Rs. 3450 at 20% p.a. simple interest for 3 years. After 3 years, he invested the amount received by him at the 20% p.a. compound interest...
Shivam invested 20000 at 12% p.a. simple interest for ‘x’ months. If at the end of ‘x’ months, he received a total amount of Rs.23200. What is t...
- Calculate the total return on Rs. 60,000 invested for 2 years at 15% p.a. simple interest.
What sum of money must be given at simple interest for 8 months at 4% per annum in order to earn Rs. 320 interest?