class and the self object these arguments are necessary to help python make proper connections between the parent and child classes when you use inheritance in python make sure you define the parent class using the object syntax as well defining attributes and methods for the child class once you have child class that inherits from parent classyou can add any new attributes and methods necessary to differentiate the child class from the parent class let' add an attribute that' specific to electric cars ( batteryfor exampleand method to report on this attribute we'll store the battery size and write method that prints description of the batteryclass car()--snip-class electriccar(car)"""represent aspects of carspecific to electric vehicles "" def __init__(selfmakemodelyear)""initialize attributes of the parent class then initialize attributes specific to an electric car ""super(__init__(makemodelyearself battery_size def describe_battery(self)"""print statement describing the battery size ""print("this car has str(self battery_size"-kwh battery "my_tesla electriccar('tesla''model ' print(my_tesla get_descriptive_name()my_tesla describe_battery(at we add new attribute self battery_size and set its initial value tosay this attribute will be associated with all instances created from the electriccar class but won' be associated with any instances of car we also add method called describe_battery(that prints information about the battery at when we call this methodwe get description that is clearly specific to an electric car tesla model this car has -kwh battery there' no limit to how much you can specialize the electriccar class you can add as many attributes and methods as you need to model an electric car to whatever degree of accuracy you need an attribute or method that could belong to any carrather than one that' specific to an electric