摘要:
abstract class Geom { getType() { return "Gemo"; } width: number; abstract getArea(): number; // 抽象方法 } class Circle extends Geom { getArea() { return 阅读全文
摘要:
class Person5 { constructor(private name: string) {} get getName() { return this.name; } } const person5 = new Person5("dell5"); console.log(person5.g 阅读全文