class Fu
{
static String age="50";
Fu(String age)
{
this.age=age;
}
public static String get()
{
return age;
}
}
class Son extends Fu
{
int x=1;
static String g;
Son(int x)
{
super("");
this.x=x;
}
public static String get()
{
g=super.get();
return g;
}
}
为什么会报说 错误: 无法从静态上下文中引用非静态 变量 super
g=super.get();
^
|