I am using TypeScript 1.6 and would like to create an abstract class with an abstract method, but use the lambda / arrow function in a specific class.
Is it possible? The code shown below does not compile as it says
The Base class defines the def member function, but the Concrete extended class defines it as an instance member property "...
abstract class Base { abstract abc(): void; abstract def(): void; } class Concrete extends Base { private setting: boolean; public abc(): void { this.setting = true; } public def = (): void => { this.setting = false; } }
source share