解决方案 »

  1.   

    这个确实没有遇到过,可能protected 只局限自己包内引用。。
      

  2.   

    我感觉你是把两个问题搞混了,protected修饰,是指子类可以继承,重写,访问  ,是相当于在子类定义了该方法。
    而你是实例化父类,用父类访问,是属于方法修饰符的 作用域问题。
    不知你懂了没
      

  3.   

    http://blog.csdn.net/peisl/article/details/6343386
    可能我说的有点问题,protected 修饰作用域是指   1 同一个包中的类 2 子类
      

  4.   

    改成这样:package son;
     import father.Person;
     
    class Student extends Person{
         public void myIntroduce(){
         introduce();// 这里才是“子类访问父类的protected方法”
         }
         public static void main(String args []){
             Person p = new Person();
             p.myIntroduce();
         }
     }
      

  5.   

    class Student extends Person{
        public static void main(String args []){
           Student s = new Student();
            s.introduce();
        }
    }