Commit 5eb51293 authored by 9831133's avatar 9831133

Upload New File

parent df2e20a4
Pipeline #2036 canceled with stages
public class Student {
private String firstName;
// the student’s last name
private String lastName;
// the student ID
private String id;
//the grade
private int grade;
public String getFirstName () {
return firstName;
}
public void setFirstName (String fName){
firstName = fName;
}
public void print() {
System.out.println(lastName + ", student ID: "
+ id + ", grade: " + grade);
}
public void setGrade (int grade2){
grade=grade2;
}
public int getGrade(){
return grade;
}
public Student(String fName, String lname, String sID){
firstName = fName;
lastName = lname;
id = sID;
grade = 0;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment