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

问题描述:

java错误Constructor call must be the first statement in a constructor怎么翻译?
1个回答 分类:综合 2014-09-18

问题解答:

我来补答
这个简单:
调用构造器语句必须是构造器里面语句的第一条!
也就是说:在子类调用类的构造器时,super() 语句要是第一条语句;或者自己的构造器调用自己的不同参数构造器时,this()语句要是第一条语句
 
 
展开全文阅读
剩余:2000
上一页:课时练P3