also tests the error checking capabilities of the addGrade method. Is this a good start? Also what do I need to do next?
public class Student
{
private String lastName;
private String firstName;
private int studentID;
private int units;
private int gradePoints ;
// construct a new student with given fields
public Student(String first, String last, String email, int section) {
this.first = first;
this.last = last;
this.student = student;
this.units = units;
this.grade = grade
}
public static void main(String[]args)
{
Student s1 = new Student(/*your values here*/);
}
/*getters */
public String getLastName() { }
public String getFirstName() { }
public int getStudentID() { }
public int getUnits() { }
public int getGradePoints() { }
}
This post has been edited by macosxnerd101: 09 December 2010 - 05:58 PM
Reason for edit:: Please use code tags

New Topic/Question
Reply
MultiQuote






|