static verify() {
const name = this.getName()
}
getName
не существует в классе Model
class Model {
static verify() {
const name = this.getName()
}
}
class User extends Model {
static name = 'Boris'
static getName() { return this.name) }
}
Property 'getName' does not exist on type 'typeof Model'.
abstract class Model {
verify() {
const name = this.getName()
}
abstract getName(): string;
}
class User extends Model {
private name = 'Boris'
override getName() { return this.name; }
}