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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!