Loading

Exercise Number: 1

Q. Create a class Vehicle with a method start(). Then create a subclass Car that overrides the start() method to provide its specific implementation. Demonstrate method overriding by calling start() on an object of Car.