n  fact  static  method  calls  are  resolved  at  compile  time.  When  using  an  explicit  class  name  the  method  is  already  identified  completely  and  no  inheritance  rules  apply.  If  the  call  is  done  by  self  then  self  is  translated  to  the  current  class,  that  is  the  class  the  code  belongs  to.  Here  also  no  inheritance  rules  apply.

解决方案 »

  1.   

    关键就是楼上的一段话。
    翻译了就给满分阿。
      

  2.   

    实际上,静态方法的调用需要在编译时解决。当使用一个明确的类名时,方法已经被完全识别而不需要应用继承规则。
    如果由自身调用,那么自身被解析成当前的类,也就是代码所属的类。这里也没有应用继承规则。
      

  3.   

    楼上的谢谢你。
    但是我有个疑问,就是这里并不一定有继承,为什么要提到继承规则呢。
    这个问题是额外的问题哦。上面你的回答已经有20分了。
      

  4.   

    偶的E文是渣,所以不能翻译……飘过……
      

  5.   

    静态方法和普通方法一样,是可以被继承的,只要他不是私有的,