Class DocUndergraduateStudent
- java.lang.Object
-
- DocStudent
-
- DocUndergraduateStudent
-
public class DocUndergraduateStudent extends DocStudent
Undergraduate student.- See Also:
DocStudent
-
-
Constructor Summary
Constructors Constructor Description DocUndergraduateStudent()
Default constructor.DocUndergraduateStudent(java.lang.String name, int standing)
Initial value constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
computeGrade()
Set the grade by finding the average mark and computing the grade.java.lang.String
toString()
Produce printable information about the undergraduate student.-
Methods inherited from class DocStudent
setMark
-
-
-
-
Constructor Detail
-
DocUndergraduateStudent
public DocUndergraduateStudent()
Default constructor.
-
DocUndergraduateStudent
public DocUndergraduateStudent(java.lang.String name, int standing)
Initial value constructor.- Parameters:
name
- Name of the student.standing
- Standing as an integer, 1 = freshman, etc.
-
-
Method Detail
-
toString
public java.lang.String toString()
Produce printable information about the undergraduate student.- Overrides:
toString
in classDocStudent
- Returns:
- String.
-
computeGrade
public void computeGrade()
Set the grade by finding the average mark and computing the grade.- See Also:
DocStudent
-
-