首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

内隐类的继承有关问题

2012-09-22 
内隐类的继承问题package Testpublic class Father {private String valueFather(String v){valuev}cl

内隐类的继承问题
package Test;

public class Father {
private String value;
Father(String v){
value=v;
}
class Son extends Father{

Son(String v) {
super(v);
// TODO Auto-generated constructor stub
}

}
class GrandSon extends Son{

GrandSon(String v) {
super(v);
/*在这里报错;No enclosing instance of type Father is available due to some intermediate constructor invocation
*/
}

}
}

热点排行