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");
相關文章
相關標籤/搜索