student.java~5~
来自「java在线考试例子代码」· JAVA~5~ 代码 · 共 41 行
JAVA~5~
41 行
package testovernet;public class Student { protected int testNum; protected int age; protected int score; protected String name; protected String sex; public Student() { } public Student(int testNum,String name,int age,String sex) { this.testNum=testNum; this.name=name; this.age=age; this.sex=sex; } public void printStudentInfo() { System.out.print("TestNo : \t"); System.out.println(testNum); System.out.print("Name : \t\t"); System.out.println(name); System.out.print("Age : \t\t"); System.out.println(age); System.out.print("Sex : \t\t"); System.out.println(sex); } public void setScore(int score) { this.score=score; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?