使用反射调用类的方法 ◆通过 Method类的 Invoke方法,我们可 以直接调用类的方法 ←实例: Method PointerTest java CA C: \PROGRA"1\XINOXS"IUCREAT"I\GE2001exe ublic static double MethodPointerTest square (double public static double java. lang. Math. sgrt<double)北京理工大学计算机系(共28页) 14 使用反射调用类的方法 通过Method类的Invoke方法,我们可 以直接调用类的方法 实例:MethodPointerTest.java