Create a class Vehicle
with a method max_speed()
. Extend this class into Car
and Bike
, each implementing the max_speed()
method to return their maximum speeds.
Example 1:
Input: Car
Output: "Car's max speed is 200 mph"
Example 2:
Input: Bike
Output: "Bike's max speed is 30 mph"