Question: Question 3 5 [ 0 5 ] class Auto: def _ _ init _ ( self ) : pass def displayMessage ( x ) :
Question
class Auto:
definitself:
pass
def displayMessage :
class VehicleAuto:
definitself:
self.color
rav Vehicle
ravdisplayMessageMy Car is RAV
The above code proves Inheritance
rav should not be an instance of Vehicle class
The above code will not run because displayMessage does not belong to Vehicle class
The above code throws an error
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
