10. ? ReflectTester copy(Object object)
ִ²
? 1öͣ
C Class classType=object.getClass();
C System.out.println("Class:"+classType.getNam
e());
10ҳ
11. ? java.lang.Object жgetClass()
˶һJavaͨ
ö͡ClassReflection API
еĺ࣬·
C getName()֡
C getFields()public͵ԡ
C getDeclaredFields()ԡ
C getMethods()public͵ķ
C getDeclaredMethods()з
11ҳ