class A { constructor(public text: string) { } } class B extends A { constructor(text: string) { // this is subclass constructor super(text) } }