Java面向对象 继承类的一些特殊写法

package test; interface Inter { void func(); } public class Demo { public static void main(String[] args) { new Demo().show(new Inter() { public void func() { System.out.println("hello");
相关文章
相关标签/搜索