Thanks for the reply!
Quote:
Originally Posted by shyam
who is bob?
you access static methods only via the class name so, Student.getStudentNum() (assuming that the snippet you posted is part of the Student class)
|
Code:
Student bob = new Student();
So to get bob's student number what do you call? It can't be
Student.getStudentNum();, is it
Student.bob.getStudentNum();?