class Cat extends Animal {
constructor(name,grade){
super(name);
this.grade = grade;}
say(){return `Hello, ${this.name}!`}
}
Sign in to make a reply
CarlisWang
class Cat extends Animal {
constructor(name,grade){
super(name);
this.grade = grade;}
say(){return `Hello, ${this.name}!`}
}