abstract抽象类不能直接引用里面的东西,去看看关于抽象类的介绍吧,

解决方案 »

  1.   

    zliang82(扁头) 
    谁说不可以,只要里面有静态类就可以。
    你看一下Line2D.java的原码!
      

  2.   

    faint!
    nothing related to abstract class.
    what is the signature of contains?
    boolean (int, int) or boolean (double, double)?
    what is the type of e.getX() and e.getY()?
    make sure you are overriding it, not overloading.
      

  3.   

    小生初涉java,望高人多多指点。
    有哪位看过
    java.awt.geom
    下的Line2D.java的源码?
    能稍微解释一下吗?