?? 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 + -