Question
What is a "method" in the context of
OOP?Solution
A function that belongs to a class and defines the behavior of its objects.
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, which is moving at the rate of 60 miles per hour, is brought to rest in 3 minutes with a uniform retardation, find this retardation, and also t...
Two trains of same length are running in parallel tracks in the same direction with speed 56 km/hr and 110 km/hr respectively. The latter completely cro...
Length of a train, whose speed is 108 km/h, is 540 metres. Find the time taken (in seconds) by train to cross a bridge of length 360 metres.
A goods train departs from Jaipur towards Udaipur at 6:00 PM, while a passenger train leaves Udaipur for Jaipur at 9:00 PM. The two trains meet at Jaisa...
A 180 m long train crosses another 320 m long train running in the opposite direction in 10 seconds. If the shorter train crosses a pole in 9 seconds, w...
Train A running with a sped of 90 km/h crosses a vertical pole in 12 seconds. Speed of train A is 5 m/s less than speed of train B, and length of train ...
A train 256 meter long running with the speed of 80 kmph crosses a bridge in 18 seconds then what is the length of bridge?
Train βAβ running with a speed of 90 km/h crosses a pole in 7 seconds. If the time taken by train βAβ to cross train βBβ running with a spee...
- 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...