Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions src/model/Student.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,22 @@ public abstract class Student {
protected String firstName;
protected String lastName;
protected String major;
public Student(String studentId,String firstName,String lastName,String major)
{
public Student(String studentId,String firstName,String lastName,String major){
this.studentId=studentId;
this.firstName=firstName;
this.lastName=lastName;
this.major=major;
}
public abstract void getStudentDetails();
//Setter
public void setStudentId (String studentId) {this.studentId=studentId;}
public void setFirstName (String firstName) {this.firstName=firstName;}
public void setLastName (String lastName) {this.lastName=lastName;}
public void setMajor (String major) {this.major=major;}
//Getter
public String getStudentId() {return this.studentId;}
public String getFirstName() {return this.firstName;}
public String getLastName() {return this.lastName;}
public String getMajor() {return this.major;}

}