anyone who uses the car class will have that functionality available as welland the electriccar class will only contain code for the information and behavior specific to electric vehicles overriding methods from the parent class you can override any method from the parent class that doesn' fit what you're trying to model with the child class to do thisyou define method in the child class with the same name as the method you want to override in the parent class python will disregard the parent class method and only pay attention to the method you define in the child class say the class car had method called fill_gas_tank(this method is meaningless for an all-electric vehicleso you might want to override this method here' one way to do thatdef electriccar(car)--snip-def fill_gas_tank()"""electric cars don' have gas tanks ""print("this car doesn' need gas tank!"now if someone tries to call fill_gas_tank(with an electric carpython will ignore the method fill_gas_tank(in car and run this code instead when you use inheritanceyou can make your child classes retain what you need and override anything you don' need from the parent class instances as attributes when modeling something from the real world in codeyou may find that you're adding more and more detail to class you'll find that you have growing list of attributes and methods and that your files are becoming lengthy in these situationsyou might recognize that part of one class can be written as separate class you can break your large class into smaller classes that work together for exampleif we continue adding detail to the electriccar classwe might notice that we're adding many attributes and methods specific to the car' battery when we see this happeningwe can stop and move those attributes and methods to separate class called battery then we can use battery instance as an attribute in the electriccar classclass car()--snip- class battery()""" simple attempt to model battery for an electric car "" def __init__(selfbattery_size= )"""initialize the battery' attributes ""self battery_size battery_size classes