像这样的Java代码:
public class A {
private static int a;
public static class B {
static void funcc() {
a = 3;
}
}
}
public class C extends A.B {
public void func() {
a = 1;
}
}
当我尝试编译它时,会发生错误:
C.java:3: error: cannot find symbol
a = 1;
^
symbol: variable a
location: class C
1 error
为什么会发生这种情况?