2022年1月8日
摘要: //方式一 通过运行时类的属性调用Class类Class clazz1 = Person.class;System.out.println(clazz1);//方式二 通过运行时类的对象,调用getClass()Person p1=new Person();Class clazz2 = p1.get 阅读全文
posted @ 2022-01-08 12:57 凛至 阅读(40) 评论(0) 推荐(0)