...

/

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 ES6 version of JavaScript.

Task 1

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

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy