import java.lang.reflect.Method;返回 两个方法 标签:getMethods,private,class,static,Override,public From: https://www.cnblogs.com/silyvin/p/17553148.html
public class Test {
public static void main(String []f){
Method [] methods = B.class.getMethods();
}
private static class A {
public A xxx() {
return new A();
}
}
private static class B extends A {
@Override
public B xxx() {
return new B();
}
}
}