Question
Which OOP concept directly influences control flow by
allowing different implementations of a method to be called based on the type of the object at runtime?ÂSolution
Polymorphism (specifically method overriding and dynamic method dispatch) allows objects of different classes to be treated as objects of a common type, and the specific method implementation called depends on the actual object's type at runtime.
There was a race of 2280 meters between P & Q on a circular track of 380 meters. First time they meet during the race after 4 minutes of starting of rac...
- The ratio of the age of R after 3 years to the age of S after 6 years is 3:2. The total age of S and T after 10 years is 84 years. T’s age 6 years ago wa...
- The ratio of present ages of Sneha to that of Akash is 6:8 while the ratio of present ages of Vikram to that of Akash is 5:8. If the age of Vikram, 3 years...
Present ages of P and Q are in ratio 5:4, respectively. Present ages of R and P are in ratio 3:4, respectively. If the difference between ages of Q and ...
Present age of ‘A’ is 40% more than that of ‘B’. If 14 years hence from now, ‘B’ will be 8 years younger than ‘A’, then find the sum of ...
At present, Peter is Seven years younger than Adam. Adam’s age twenty years hence will be equal to thrice that of peter Five years ago. What will ...
What is the value of 'x' such that, given their current ages are in a 3:7 ratio, 'x' years ago, the ratio of 'Adarsh' and 'Malik's ages was 1:3, and if ...
K is as much younger than M as he is older than O. If the sum of the ages of M and O is 100 years, what is definitely the difference between M and K’s...
Difference of ages of father and son is 24 years. Two years back age of father was twice the son's present age.
What is father's age now?
A’s age is 120% of what he was 4 years ago, But 60% of what it will be after 4 years. What is his present age?