标题: No constuctor Frotz() in the class [打印本页] 作者: 黑马-罗志强 时间: 2013-1-7 09:37 标题: No constuctor Frotz() in the class 请问我继承了一个class叫做 Frotz,编译器却给我“No constuctor Frotz() in the class”这样的错误提示,为什么呢?求高人解答作者: 黄锦成 时间: 2013-1-7 11:11
应该你在Frotz类中没定义无参构造函数作者: 熊永标 时间: 2013-1-7 11:44
class Frotz
{
public Frotz(int i)
{
}
}
class childClazz extends Frotz
{
}
//上面的写法将产生No constuctor Frotz() in the class,因为Frotz已经显式创建了有参构造函数.