摘要:
public class ReflectDemo03 { public static void main(String[] args) throws ClassNotFoundException, NoSuchMethodException, IllegalAccessException, Invo 阅读全文
摘要:
Student类: package com.reflect_02; public class Student { private String name; int age; public String address; //构造方法:1个私有,1个默认,2个公开 public Student() { 阅读全文
摘要:
public class ReflectDemo02 { public static void main(String[] args) throws ClassNotFoundException, NoSuchMethodException, IllegalAccessException, Invo 阅读全文
摘要:
public class ReflectDemo { public static void main(String[] args) throws ClassNotFoundException { //1.使用类的class属性来获取该类对应的Class对象。 Class<Student> c1 = 阅读全文