public class Outer {
class Inner1 extends Outer {}
class Inner2 extends Inner1 {}
}
==================================================================================================
public class Outer {
class Inner1 {}
class Inner2 extends Inner1 {}
}
先不编译,猜猜看哪个类能编译通过,哪个编译失败?作者: luheqi 时间: 2014-7-2 17:11
应该第一个成功,第二个失败