/**
   This program demonstrates the Student class family.
*/

public class StudentDemo
{
   public static void main(String[] args)
   {
   	  Student [] students;
	  students = new Student[3];
	   
      // Create a CompSciStudent object.
      students[0] = new CompSciStudent("Jennifer Haynes",
       "167W98337", 2004);

      // Store values for math, CS, and gen ed hours.
      ((CompSciStudent)students[0]).setCsHours(20);
      students[0].setGenEdHours(40);
	 
 	  students[1] = new CISStudent("Molly Malloy",
                                "295W98458", 2004);
	  students[1].setElectiveHours(12);
	  
	  students[2] = new Student("Harvey Madison", "874X45873", 2006);
	  students[2].setGenEdHours(20);
	  students[2].setElectiveHours(3);

      // Display the student data.
      for (Student s : students)
	  	System.out.println(s + "\n");
   }
}