Question: write code in python to create a class named TheVehicle with the following attributes: (name, maxSpeed, mileage, brand) and a function named seating Capacity where
write code in python to create a class named TheVehicle with the following attributes: (name, maxSpeed, mileage, brand) and a function named seating Capacity where capacity is a parameter. Create 3 objects with different values and display the values in the output window. then create 2 objects named Truck; Truck object will inherit all of the variables and methods of the TheVehicle class and display it. Write necessary codes for inheritance and display all the information of Truck
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
