//******************************************************************** // Student.java Author: Brenneman // // Represents a student. The parent class for Program 5. // // DO NOT CHANGE THIS FILE. //******************************************************************** public class Student { private String name; private int id; //----------------------------------------------------------------- // Sets up a student with the specified name and number of // courses. //----------------------------------------------------------------- public Student (String studentName, int studentid) { name = studentName; id = studentid; } //----------------------------------------------------------------- // Returns the heading for a student's grade report. //----------------------------------------------------------------- public String gradeReport() { return "GRADE REPORT FOR: " + name + "\t Id: " + id; } //----------------------------------------------------------------- // Returns information about this student as a string. //----------------------------------------------------------------- public String toString() { return "Student name: " + name + "\tId: " + id + "\n"; } }