If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

The tester class is the problem, i very simple problem. All i want to change is it to show the name of the student before it asks the student to enter their marks. But it always comes up with errors when i try and do this.
The code is below:

If I understand what you want to do, then you need to instantiate your Student object before the user is asked any questions. Also, you may want to consider renaming your Student instance from "exam" to something else that makes a bit more sense (e.g rename "exam" to "student").