原始问题:
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.`;
} }
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.`;
} }
Prev:本来的样子,记叙文