首页 > 电脑

关于static方法能否被继承的java官方解释

更新时间2019-12-31 23:03:09

java官方教程继承部分

关于static方法能否被继承的java官方解释

有这么一条

关于static方法能否被继承的java官方解释

文本的

  • You can write a new static method in the subclass that has the same signature as the one in the superclass, thus hiding it.

也就默认认可静态是可以继承的

实际,你测试下就可以知道了

关于static方法能否被继承的java官方解释

相关标签:java

上一篇:谁家的MT4页面简洁,操作方便?

下一篇:和平精英电脑版一直按w不能一直走怎么回事