Question
Which of the following best describes the control flow
when a method in a subclass overrides a method in its superclass, and an object of the subclass is referred to by a superclass reference, then the overridden method is called?ΒSolution
This is a core concept of polymorphism in OOP. When an overridden method is called on an object referenced by a superclass type, the actual method executed is determined at runtime based on the actual type of the object, not the reference type. This is known as dynamic method dispatch or runtime polymorphism.
There is 40% increase in an amount in 8 years at simple interest. What will be the compound interest of Rs. 16,000 after 3 years at the same rate?
A bank provides a loan at the rate of 5% per annum to a trader on an amount of 12,50,000 for 5 years. The simple interest to be paid is:
Suresh earned an interest of Rs. 1161 on principal amount of Rs. 3600 at some rate of compound interest in 2 years. How much more/less interest would he...
Rs. 6500 is invested in scheme βAβ for 2 years and Rs. 6500 is invested in scheme βBβ for 2 years. Scheme βAβ offers simple interest of 14% ...
The interest obtained by investing Rs. (3p + 100) at a simple interest rate of 10% p.a. for 5 years is Rs. (2p + 250). Find the ratio (p - 75) : (p + 125).
Rs. x is invested at simple interest at the rate of 10% per annum for 3 years. If Rs. (x + 300) is invested at the same rate of interest for the same p...
- An amount becomes Rs. 11,520 after 3 years at a simple interest rate of r% p.a. If the rate had been increased to (r + 5)% per annum, the same sum would be...
The difference between compound interest and simple interest at the same rate for Rs. 1800 for 2 years is Rs. 18. The rate of interest per annum is:
The simple interest received on a certain sum is Rs. 500 less than the sum invested. If the sum was invested at 12% p.a. for 8 years, then find the simp...
The ratio of the compound interest earned on an amount of Rs. 'p' at an interest rate of 15% per annum for 2 years to the simple ...