Skip to content
Advertisement

Tag: abstract-class

Overriding super method in TypeScript

I’m trying to overload/override a class method in TypeScript, where the superior method takes zero arguments and the subordinate method takes one. My TypeScript code is similar to the following: This code produces the following error: Why doesn’t this work? It it because the transpiled JavaScript output simply isn’t capable of making an inheritance distinction between these two classes? How

Advertisement