-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathStudent.java
More file actions
35 lines (23 loc) · 777 Bytes
/
Student.java
File metadata and controls
35 lines (23 loc) · 777 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package students.derwinbell;
public class Student extends Person{
private int gradeLevel;
private double gpa;
public Student(String id, String firstName, String lastName, String email, int gradeLevel, double gpa) {
super(id, firstName, lastName, email);
this.gpa = gpa;
this.gradeLevel = gradeLevel;
}
@Override
public void getSummary(){
System.out.println("-["+getId() + "] " + getFirstName() +" " + getLastName() + " | GradeLevel: " + getGradeLevel() + " | GPA: " + getGpa() + " | HonorRoll: " + isOnHonorRoll());
}
public boolean isOnHonorRoll(){
return true;
}
public double getGpa() {
return gpa;
}
public int getGradeLevel() {
return gradeLevel;
}
}