studentregister.java

来自「java学习课件」· Java 代码 · 共 31 行

JAVA
31
字号
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 + =
减小字号Ctrl + -
显示快捷键?