作业帮 > 综合 > 作业

java错误Constructor call must be the first statement in a cons

来源:学生作业帮 编辑:灵鹊做题网作业帮 分类:综合作业 时间:2024/04/30 12:13:19
java错误Constructor call must be the first statement in a constructor怎么翻译?
java错误Constructor call must be the first statement in a cons
这个简单:
调用构造器语句必须是构造器里面语句的第一条!
也就是说:在子类调用类的构造器时,super() 语句要是第一条语句;或者自己的构造器调用自己的不同参数构造器时,this()语句要是第一条语句