可以的。
main里面这样写就行了     Parent p = new Son();
     p.callMethod();

解决方案 »

  1.   

    调试是可以通过,不过运行的时候肯定会报错了。
    Parent constructor is invoked
    abstractMethod was implimented by son。
      

  2.   

    哦,我把abstractMethod()方法看错了,以为子类是抽象的了。
    如果子类不是抽象的,当然可以用new子类来实现了。
      

  3.   

    sorry,没仔细看,结果差点误导别人。把abstractMethod()前面的看成关键字了,以为是抽象方法了。呵呵。
    抱歉。
      

  4.   


    Parent constructor is invoked
    abstractMethod was implimented by son。就是运行结果
      

  5.   

    可以呀,
    Son类等价于:
    public class Son  extends Parent
    {
      public Son()
      {
        System.out.println( "son constructor is invoked" );
      }
      public void abstractMethod()
      {
          System.out.println( "abstractMethod was implimented by son" );
      }
      public static void main(String[] args)
      {
        Parent p = new Son();
        p.callMethod();
      }
       public  void callMethod()
      {
         abstractMethod(); //能不能调用到子类的实现????
      }
    }结果为:
    Parent constructor is invoked
    son constructor is invoked
    abstractMethod was implimented by son