摘要: Java中的静态方法只能继承,不能重写!!官方文档是这样写的:Class methodsIf a subclass defines a class method with the same signature as a class method in the superclass, the method in the subclasshidesthe one in the superclass.如果一个子类定义了一个和父类静态方法中相同的方法(即方法名,参数和返回类型相同),则该类隐藏了父类中的这个方法。The distinction between hiding and overriding 阅读全文
posted @ 2013-11-06 19:00 冬叶's blog 阅读(2623) 评论(0) 推荐(0) 编辑