`
chongkai
  • 浏览: 1114 次
  • 性别: Icon_minigender_1
  • 来自: 北京
最近访客 更多访客>>
文章分类
社区版块
存档分类
最新评论
文章列表
如果一个static方法被子类覆盖(override)了,运行时会调用哪个版本呢? 第二个问题,我们有时候会用super去调用父类的实现。如果这个类又被继承了,那这个super会指向哪个类呢? 下面的程序的运行结果是什么呢? class High { void doIt () { System.out.println("doIt in High"); } } class Mid extends High { void doIt () { System.out.println("doIt in Mid"); } ...
Global site tag (gtag.js) - Google Analytics