Hi - I'm back again with a few questions on your sample code above.
In the Student class and again in the Storage constructor I notice you have used the variable numStudents. Am I assuming correctly that this hasn't been initialised anywhere because it is sample code?
In the Storage class and the storeStudent method you are passing a parameter called Student studentObject. Could you elaborate on this for me? If studentObject is a variable this has also not been declared anywhere. Again, is this because it is sample code?
I also notice you have used the following:
*@param args the command line arguments
I am assuming this is comments only?
In the public class TestStudent at the end, the first line in the for statement you use:
Student output = store.retrieveStudent(i);
I understand that retrieveStudent is a method in the Storage class, was store meant to be Storage then?
Thanking you again