Object Oriented, Python, Programming.
ElectricCar(Car):. The __init__ method is overridden to include the battery_capacity attribute, and we call the parent class's __init__ method using super(). We also define a new method display_battery_info specific to the ElectricCar class. Step 6: Polymorphism Polymorphism allows objects of