public class GPA
extends java.lang.Object
Constructor and Description |
---|
GPA(int year,
double gpa)
create GPA with year and gpa
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
two GPAs are equal if the year and gpa are equal
|
double |
getGPA() |
int |
getYear() |
void |
setGPA(double gpa) |
void |
setYear(int year) |
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int getYear()
public void setYear(int year)
year
- the year to setpublic double getGPA()
public void setGPA(double gpa)
gpa
- the gpa to set