/**
 * Graduate class extends from Student class.  It works in tandem with
 * TestStudent.java to illustrate Inheritance and Polymorphism.
 * 
 * CSCE 155 Fall 2005
 *
 * @author Leen-Kiat Soh
 * @version 1.0
 */

class Undergraduate extends Student {

   private boolean doubleMajor;

   public Undergraduate(String name)  {
      super(name);
      }

   public void setDoubleMajor(boolean doubleMajor)  {
      this.doubleMajor = doubleMajor;
   }

   public boolean getDoubleMajor()  {
      return doubleMajor;
   }

   // what happens if I uncomment the following?
   /*
   public void computeGrade()  {

      courseGrade = "F";

      }

      */
}



