TypeScript class implements class with private functions
问题 I was exploring the possibility of having a class implementing a class in TypeScript. Hence, I wrote the following code Playground link: class A { private f() { console.log("f"); } public g() { console.log("G"); } } class B implements A { public g() { console.log("g"); } } And I got the error: Class 'B' incorrectly implements class 'A' --- property 'f' is missing in type 'B' coupled with a suggestion that I actually meant extends . So I tried to make a private field called f ( public didn't