Computer Science, asked by yanalotia4245, 8 months ago

Given an abstract class Car with abstract methods like getModel and getMaxSpeed. Create a class Suzuki with following characteristics Initialize member variable of Car class using the super constructor which contains two parameters model and speed. Implement getModel & getMaxSpeed method inside the Suzuki class which returns value of car model and speed.

Answers

Answered by salahu73
0
Create an abstract class with a constructor, an abstract method and two normal methods that are overloaded methods of the same name.
Create a normal class that extends this class.
Make sure your code can compile and run without producing errors.
Similar questions