Skip to content
Latest: Publish JavaScript Packages to NPM Like a Pro!

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