class Father extends Man {
class Father extends Man {
constructor(name, age) {
super(name, age);
}
getFatherInfo() {
return `My name is ${this.name}, I'm ${this.age} years old and I'm a father.`;
}
}
免责声明:
以上内容除特别注明外均来源于网友提问,创作工场回答,未经许可,严谨转载。