Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started