更新时间:2022-04-26 22:43:49
B类隐含地调用super()
但是A类中没有定义无参数构造函数。
您可以:
- 调用例如,
super(0,0);
在B
类构造函数
The B class implicitely callssuper()
however no argument-less constructor is defined in the A class.
You might either:
- call, for instance,
super(0,0);
insideB
class constructor
A
类中定义无参数构造函数A
class