通过构造函数实例化对象
摘要:
总结:通过class.getConstructor(parameterTypes)获得对应的构造器,然后通过constructor.newInstance(parameterTypes)实例化对象。 阅读全文
posted @ 2017-06-27 21:18 默默红尘 阅读(2716) 评论(0) 推荐(0)
posted @ 2017-06-27 21:18 默默红尘 阅读(2716) 评论(0) 推荐(0)
posted @ 2017-06-27 20:46 默默红尘 阅读(492) 评论(0) 推荐(0)
posted @ 2017-06-27 19:34 默默红尘 阅读(8736) 评论(0) 推荐(1)
posted @ 2017-06-27 18:07 默默红尘 阅读(783) 评论(0) 推荐(0)