Java错误:默认构造函数未定义隐式超级构造函数
abstract public class BaseClass { String someString; public BaseClass(String someString) { this.someString = someString; } abstract public String getName();}public class ACSubClass extends BaseClass { public ASubClass(String someString) { super(someString); } public String getName() { return "name value for ASubClass"; }}
BaseClass
getName()
BaseClass
Implicit super constructor BaseClass() is undefined for default constructor. Must define an explicit constructor
呼如林
青春有我
相关分类