Fields with Inheritance in typescript

If we were to construct our Car, we need to make sure it call the parent class’s constructor. We do this by using super, and passing in whatever required parameters is required. In our case, it is color: string.

We then declare new property wheels for Car.

Lastly, make sure we put in the required constructor params for Car when we instantiate it.