Class DocUndergraduateStudent


  • public class DocUndergraduateStudent
    extends DocStudent
    Undergraduate student.
    See Also:
    DocStudent
    • 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 java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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 class DocStudent
        Returns:
        String.
      • computeGrade

        public void computeGrade()
        Set the grade by finding the average mark and computing the grade.
        See Also:
        DocStudent