class p
{
   protected int a=5;
}
public class qq
{
  public static void main(String args[])
{
    p test=new p();
    test.a=9;
    System.out.println("good"+test.a);
}
}我现在才刚开始学java,很多不懂,为什么java中对象可以直接访问保护类型的数据?对象不能直接访问的数据有哪些?