Reflection——利用反射调用构造函数和私有字段
摘要:
TwoString.javapublic class TwoString { private String m_s1, m_s2; public String getM_s1() { return m_s1; } public void setM_s1(String m_s1) { this.m_s1 = m_s1; } public String getM_s2() { return m_s2; } public void setM_s2(String m_s2) { this.m_s2 = m_s2; } public TwoString(String s1, String s2)... 阅读全文
posted @ 2010-11-05 09:21 java课程设计 阅读(180) 评论(0) 推荐(0) 编辑