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
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koophttps://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton