Question
Which keyword is used for inheritance in
C++?Solution
In C++, the colon : is used to define inheritance like class B : public A.
The present age of A is 7/4 times to that of his marriage age. Present age of his brother is 1/4th of his present age. If A was married 36 years ago the...
The present age of Preeti is twice Ruchi’s present age. Six years ago, their average age was 15 years. What will be the Preeti’s age after f...
Four years ago, the ages of the father and his son were in the ratio 7:2. Four years hence, the ages of the father and his son will be in the ratio 9:4....
Currently, the ages of Rahul and Ritesh are in a ratio of 7:3. If we look back three years, the ages of Ritesh and Ramesh had a ratio of 1:3. Knowing th...
Ratio of present age of 'A' to that of 'B' is 1:2. If the age of 'B' six years ago was 10 years, then after how many years, the ratio of the age of 'B'...
Present age of ‘A’ is 60% more than that of ‘B’. If 13 years hence from now, ‘B’ will be 12 years younger than ‘A’, then find the sum of...
- The current age of Rahul is 20% greater than Simran's present age. Additionally, in 5 years, the average of their ages will be 7 years more than Simran’s...
B is 4 years older than A and A is 8 years older than C. If the sum of the age of A and C is 22 years, then find the sum of the ages of all three.Â
A certain sum of money becomes 4 times of itself in 15 years at simple interest. In how many years does it become double of itself at the same rate of s...
- Three years ago, A’s age was 9 years less than 1.3 times his current age. The ratio of B’s age after 4 years to C’s age 2 years ago is 3:1. What is B...