OOP 6: Overriding Methods

OOP 6: Overriding Methods

6.1. Rewrite start_engine and stop_engine methods of the ElectricCar class to display another messages "Electric motor has started" and "Electric motor has stopped" respectively and change attributes the same way.

6.2. Call the start_engine method for the my_electric_car instance.

6.3. Create my_electric_car2 (values 60, "Toyota", "Prius"), start and stop its engine.