一、实现方式 Class cla=null; 1.类名.class, cla=Person.class 2.对象.getClass()方法, Person per=new Person; cla=per.getClass(); 3.Class.ForName()方法 Class.ForName("Person");
Powered by: 博客园 Copyright © 2024 Suspecter Powered by .NET 9.0 on Kubernetes