abstract class AA {
name:string
constructor(name:string) {
this.name = name
}
abstract getName():string
}
class BB extends AA {
constructor() {
super('test')
}
getName():string {
return this.name
}
}
let bbb = new BB()
console.log(bbb.getName())