一个类的属性还需要做参数吗?
public class ClassA{ private Student student; public void fun(){ student."各类方法随便用啊"(); }}
说实话,没大看懂你什么意思?你学生类的结构是什么呢?是要求没有年纪和专业属性吗?