📄 studentregister.java
字号:
public class StudentRegister extends Citizen
{
String studentId;
int result;
String department;
String specialty;
public StudentRegister()
{
super();
studentId="00000000000";
result=0;
department="不祥";
specialty="不祥";
}
public StudentRegister(String name,String alias,String sex, String brithday,String homeland,String ID,String studentId,int result,String department,String specialty)
{
super(name,alias,sex,brithday,homeland,ID);
this.studentId=studentId;
this.result=result;
this.department=department;
this.specialty=specialty;
}
public void displayall()
{
super.displayAll();
System.out.println("学号:"+studentId);
System.out.println("入学成绩:"+result);
System.out.println("院系:"+department);
System.out.println("专业:"+specialty);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -