Originally Posted by twodayslate
public int getStudentNum is only static so it can return the static StudentNum correct? To call it you would say Student.bob.getStudentNum();?
who is bob?
you access static methods only via the class name so,
(assuming that the snippet you posted is part of the Student class)