...

/

Exercise 3: Inheritance with Cars

Exercise 3: Inheritance with Cars

In this exercise, you need to implement inheritance between two classes, Vehicle and Car.

Problem Statement

In this exercise, you have to implement inheritance in between classes in the ES6 version of JavaScript.

Task 1

The base class Vehicle is declared below. You have to define its constructor. The constructor should contain:

...