FT_TUITION, PT_TUITION
Constructor and Description |
---|
NYStateResident()
Constructor sets default values for student first name, last name, grade,
credits and county residence fields.
|
NYStateResident(java.lang.String firstName,
java.lang.String lastName,
java.lang.String grade,
int credits,
java.lang.String county)
Explicit call to superclass Student constructor sets initial values for
the student first name, last name, grade and credits, and then
sets the county residence field.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCounty()
Returns the student's county of residence in New York State.
|
int |
getNYStateTuition()
Returns the tuition which must be paid by Nassau County as an int value.
|
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 and Nassau tuition fields with
labels as a string.
|
void |
setCounty(java.lang.String county)
Updates the student's county of residence in New York State.
|
getCredits, getFirstName, getGrade, getLastName, setCredits, setFirstName, setGrade, setLastName, toString
public NYStateResident()
public NYStateResident(java.lang.String firstName, java.lang.String lastName, java.lang.String grade, int credits, java.lang.String county)
firstName
- the student's first namelastName
- the student's last namegrade
- the student's letter gradecredits
- the number of credits carried by the studentcounty
- the student's county of residencepublic void setCounty(java.lang.String county)
county
- the student's county of residence in New York Statepublic java.lang.String getCounty()
public int getTuition()
getTuition
in interface Tuition
public int getNYStateTuition()
public java.lang.String getTuitionString()
getTuitionString
in class Student