class Cat extends Animal{ //第一次写extends还漏了个s constructor(name){ super(name); } say(){ return 'Hello, '+this.name+'!'; } }
Sign in to make a reply
吉岸齐昂
class Cat extends Animal{ //第一次写extends还漏了个s constructor(name){ super(name); } say(){ return 'Hello, '+this.name+'!'; } }