Well this is certainly odd.. When I examined it, it didn't find 4 unresolved symbols, but it did find two. See the code below for the two lines I commented out- you don't have methods for what you're trying to call(setPoints, and setHours).
Please use code tags when posting code.
// Student.java
// creates a class to store info about a student
class Student {
// the private data members
private int IDnumber;
private int hours;
private int points;
// constructor added in last part of project
Student() {
IDnumber = 77375;
points = 12;
hours = 3;
}
// end of constructor
// the public get and set methods
public void setIDnumber(int number) {
IDnumber = number;
}
public int getPoints() {
return points;
}
// methods to display the fields
public void showIDnumber() {
System.out.println("ID Number is: " + IDnumber);
}
public void showHours() {
System.out.println("Credit Hours: " + hours);
}
public void showPoints() {
System.out.println("Points Earned: " + points);
}
public double getGradePoint() {
return (double)points / hours;
}
}
// ShowStudent.java
// client to test the Student class
class ShowStudent {
public static void main (String args[]) {
Student pupil = new Student();
pupil.showIDnumber();
pupil.showPoints();
pupil.showHours();
System.out.println("The grade point average of the studnet created by constructor is "
+ pupil.getGradePoint()+"\n\n");
Student s2 = new Student();
s2.setIDnumber(12345);
// s2.setPoints(66);
// s2.setHours(20);
s2.showIDnumber();
s2.showPoints();
s2.showHours();
System.out.println("The grade point average of another student is "
+ s2.getGradePoint()+"\n");
}
}
Resulting output:
ID Number is: 77375
Points Earned: 12
Credit Hours: 3
The grade point average of the studnet created by constructor is 4.0
ID Number is: 12345
Points Earned: 12
Credit Hours: 3
The grade point average of another student is 4.0
Evidently, the code I was just using was able to get access... You may want to check your PATH & CLASSPATH variables. Otherwise, try the code above. I'm not using your system so I can't tell you what's wrong unless you provide more system info.