Question
In OOP, what is meant by
"overriding"?Solution
Overriding means redefining a base class method in a derived class with the same signature.
Train A running at a speed of 30 km/hr crosses train B in 20 seconds. Find the speed of train B (in km/hr), if the sum of the length of train A and B is...
A train is moving at a constant speed of 234 km/hr. It takes 8 seconds to pass a pole and 18 seconds to cross a platform. Calculate the difference betw...
Train 'X' leaves Pune heading to Nagpur at 7:00 a.m. At 9:00 a.m., Train 'Y' leaves Nagpur for Pune, traveling at 70 km/h. The trains meet at 2:00 p.m. ...
A train takes 16 seconds to pass a stationary boy. The same train requires 38 seconds to traverse a platform measuring 495 meters in length. Determine t...
Train 'A' having a speed of 10 m/s can cross a man in 15 seconds. The length of train 'B' is 150 metres more than the length of 'A'. If the speed of 'B'...
1260 metres long train crosses a man who is moving in the same direction with a certain speed in 30 seconds. If the same train can cross a pole in 21 se...
Train 'A' is 200 meters long and takes 15 seconds to cross a pole. The same train crosses train 'B' (which is 240 meters long) coming from the opposite ...
- The length of train 'X' is 'y' metres and that of train 'Y' is (y + 150) metres. If the speeds of train 'X' and 'Y' are 72 km/h and 36 km/h, respectively, ...
Train P travelling at 55 km/hr crosses another train Q, having three fourth of its length and travelling in opposite direction at 35 km/hr in 14 seconds...
- A train overtakes a scooterist who is moving in the same direction at 36 km/h. If the train takes 18 seconds to pass the scooterist and its speed is 2.5 ti...