java.lang.ObjectStudent
SuffolkResident
public final class SuffolkResident
The SuffolkResident class definition which manages student tuition field.
Field Summary |
---|
Fields inherited from interface |
---|
FT_TUITION, PT_TUITION |
Constructor Summary | |
---|---|
SuffolkResident()
Constructor sets default values for student first name, last name, grade and credits fields. |
|
SuffolkResident(java.lang.String firstName,
java.lang.String lastName,
java.lang.String grade,
int credits)
Explicit call to superclass constructor Student sets initial values for the student first name, last name, grade and credits fields. |
Method Summary | |
---|---|
int |
getTuition()
Returns the semester tuition for a student as an int based on number of credits. |
java.lang.String |
getTuitionString()
Returns the formatted semester tuition field with a label as a string. |
Methods inherited from class |
---|
getCredits, getFirstName, getGrade, getLastName, setCredits, setFirstName, setGrade, setLastName, toString |
Methods inherited from class |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SuffolkResident()
public SuffolkResident(java.lang.String firstName, java.lang.String lastName, java.lang.String grade, int credits)
firstName
- the student's first namelastName
- the student's last namegrade
- the student's letter gradecredits
- the number of credits carried by the studentMethod Detail |
---|
public int getTuition()
getTuition
in interface Tuition
public java.lang.String getTuitionString()
getTuitionString
in class Student