/**
 * Defines a student.
 *
 * @author TK Rogers
 * @version 02-17-09
 */
public class Student extends Person implements Grades {
    // Fields
    private int        mathGrade,
                           englishGrade;
 
    private double gpa;

 

    // Constructor
    Student ( ) {
        super (150.0, 72.0);   // Runs the Person constructor in 
                                         // order to set weight and height.
        mathGrade = 90;
        englishGrade = 100;
    }
 
    //Defines the code for the gpa method from the Grades interface
    public double gpa ( ) {
        return (mathGrade + englishGrade) / 2.0;
    }
}