ok i got this assignment, and i'm a bit confused about what this method is supposed to do.
i have to create a "setLab" method and accept a Grade object (which is already done and provided). this is what i got so far:
public class CourseGrades{
private Grade [] grades = new Grade [4]; //it tells me to create this array
public void setLab(Grade g){
//??????
}
then it tells me that the object (Grade g) should already hold a student's score, which i assume that i do in the main method. ok then, it says grades[0] should reference this object.
so does that mean this?
grades[0] = new Grade;
i'm confused b/c the method doesn't do anything else but that, and it's hard to see its practical value.