本帖最后由 android0276 于 2014-7-6 20:25 编辑
请看下面两个类定义:
public class Outer {
class Inner1 extends Outer {}
class Inner2 extends Inner1 {}
}
==================================================================================================
public class Outer {
class Inner1 {}
class Inner2 extends Inner1 {}
}
先不编译,猜猜看哪个类能编译通过,哪个编译失败? |
|