Skip to content
Node.js Sounds Complicated? This Article Makes It Click

Does a derived class's field override the property of its parent class with the same name?

Home>Classes in JavaScript Explained>Does a derived class's field override the property of its parent class with the same name?

Does a derived class's field override the property of its parent class with the same name?

This code shows that a derived class's field overrides the property of its parent class with the same name.

See it on StackBlitz