Question: I want to know how to create a base class in python called automobile with name, max_speed, and tank_size attributes. Then I want to create
I want to know how to create a base class in python called automobile with name, max_speed, and tank_size attributes. Then I want to create a derived class called car that inherits from the automobile class. The car needs to have an additional attribute called seat_capacity with default value of 5. The child class should have a method named range to calculate fuel efficiency - the calculation include max_speed * seat_capacity * tank_size. Then I need to Override the method such that it can accept 1, 2 or 3 positional arguments. Thank you
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
