Question: a . Main Class: ( at least have 3 attributes ) Create a class named Vehicle to represent the common features shared by all vehicles.
a Main Class: at least have attributes
Create a class named Vehicle to represent the common features shared by all vehicles. This class should include attributes like brand, model, and year of manufacture.
Also, define a method named describe to provide a description of the vehicle.
b Subclass: Must extend Main class and at least have extra attributes
Develop a subclass called Car, which inherits from the Vehicle class. In addition to the common attributes, the Car class should have an extra attribute to store its mileage.
Implement a method named calculatemileage to return the car's mileage.
c Provide an example illustrating how to create a Car object and utilize its methods.
###### Use python language to answer this question
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
