Object Oriented, Python, Programming.
2018) electric_car = ElectricCar("Tesla", "Model S", 2021, 100) car3.display_info() electric_car.display_info() electric_car.display_battery_info() In the above code: We create a Car object car3 and an ElectricCar object electric_car. We call the display_info method on both objects, which outputs