Java创建对象的几种方法
摘要:1.使用new关键字 Person person=new Person(); 2.使用Class类的newInstance方法 a) Person ps=(Person) Class.forName("com.springioc.myioc.Person").newInstance(); 需要捕获C
阅读全文
posted @ 2019-04-11 11:57
posted @ 2019-04-11 11:57
posted @ 2019-04-07 14:09