
java – getMethods()返回方法我在实现通用接口时没有定义
一个简单的界面: interface Foo { void myMethod(String arg);}class FooImpl implements Foo { void myMethod(String arg){} public static void main(String[] args) { Class cls = FooImpl.class;
一个简单的界面: interface Foo { void myMethod(String arg);}class FooImpl implements Foo { void myMethod(String arg){} public static void main(String[] args) { Class cls = FooImpl.class;