error: '{' expected class Dog extends Animal(){
时间: 2023-11-27 14:49:19 浏览: 49
http-error-parse:NodeJS HTTP 错误解析。 给定一个错误堆栈对象,获取一条消息和_或相关的 HTTP 响应代码(404、400、401 等)
The correct syntax for defining a class with extends keyword is:
```
class Dog extends Animal {
// class body
}
```
The parentheses after the parent class name are not needed. Here's the corrected code:
```
class Dog extends Animal {
// class body
}
```
阅读全文