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