内隐类的继承问题
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
*/
}
}
}