Discuss / JavaScript / 练习

练习

Topic source
class Cat extends Animal {
    constructor(name, gender) {
        super(name);
        this.gender = gender;
    }
    say () {
        return `Hello, ${this.name}!`;
    }
}

  • 1

Reply