public class Test extends A
{
public static void main(String[] args)
{
System.out.println(new Test().a);
System.out.println(new Test().b);
}
}
class A
{
private int a;
}
报错如下: The field A.a is not visible b cannot be resolved or is not a field 这是不是可以说明,private 的a被继承了呢?