FreeOZ论坛

标题: Can a static method containts a static nested class? [打印本页]

作者: key    时间: 26-6-2009 09:21
标题: Can a static method containts a static nested class?
我的一本烂书中说到,any nested class can be declared within any block of code,
such as a class and a method. 我差点中招了。

事实上上面的nested class改成inner class就没问题。而static nested class只能紧随outer class,
或者其上一级也是一个static nested class.




欢迎光临 FreeOZ论坛 (https://www.freeoz.org/ibbs/) Powered by Discuz! X3.2