- interface AAA
- {
- void show();
- }
- class Student
- {
- public AAA SSS()
- {
- new AAA()
- {
- public void show()
- {
- System.out.println("zhongguo");
- }
- }.show();
-
- };
- }
- class Main
- {
- public static void main(String[] args)
- {
- new Student().SSS();
- //new Student().new Inner().show();
- }
- }
复制代码 错误提示,18行缺少返回语句,求指点 |
|