【C015417】在Spring配置文件中有如下代码段,下面的说法正确的是()。
<bean id="student" class="com.jbit.Student">
<property name="name" value="tom"/>
<property name="age" value="21"/>
</bean>
A.在类Student中需要有public void setname(String name)方法
B.在类Student中需要有private void setage(int age)方法
C.在类Student中需要有public void setName(String name)方法
D.在类Student中需要有private void setAge(int age)方法