FT_TUITION, PT_TUITION
Constructor and Description |
---|
NonResident()
Constructor sets default values for student first name, last name, grade,
credits, county and state fields.
|
NonResident(java.lang.String firstName,
java.lang.String lastName,
java.lang.String grade,
int credits,
java.lang.String state)
The constructor sets initial values for the student tuition and county
fields, and instantiates object from class State to store the state.
|
Modifier and Type | Method and Description |
---|---|
ValidState |
getState()
Returns the return value of the state object's toString() method which is
the student's state location as a string.
|
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, county of residence and state
location fields with labels as a string.
|
void |
setState(java.lang.String state)
Passes the state location parameter to the setState(String) method of the
state object field for validation.
|
getCredits, getFirstName, getGrade, getLastName, setCredits, setFirstName, setGrade, setLastName, toString
public NonResident()
public NonResident(java.lang.String firstName, java.lang.String lastName, java.lang.String grade, int credits, java.lang.String state)
firstName
- the student's first namelastName
- the student's last namegrade
- the student's letter gradecredits
- the number of credits carried by the studentstate
- the student's state locationpublic void setState(java.lang.String state)
state
- the student's state locationpublic int getTuition()
getTuition
in interface Tuition
public ValidState getState()
public java.lang.String getTuitionString()
getTuitionString
in class Student