public class ITstudent extends Student
toString
method is prefixed by "IT",
and the GPA is 10-based rather than 5-based; i.e.
it is twice that of the Student class.Constructor and Description |
---|
ITstudent(java.lang.String name)
Create an IT student having the given name, and
assigns it a serial 3-digit ID prefixed by
"200105" and an empty (fresh) record.
|
Modifier and Type | Method and Description |
---|---|
double |
getGpa()
Determine the grade-point-average (GPA) of
this
student. |
java.lang.String |
toString()
Return a string representation of
this
student. |
equals, getCourseGrade, getFirstCourse, getID, getName, getNextCourse, getRandom, getRandom, hashCode, iterator, setCourseGrade, setSeed
public ITstudent(java.lang.String name)
name
- the name of the IT student.