/** * StudentRecordNode.java * * @author Mr J * @version 20050205 */ class StudentRecordNode { // data members of the class, just a couple for illustration // more members using more types can easily be added private String name; private String tutor; // The field that links nodes together. private StudentRecordNode next; public StudentRecordNode( ) { // default constructor, sets fields to null name = null; tutor = null; next = null; } public StudentRecordNode(String nm, String tr, StudentRecordNode nx ) { // Second Constructor for a student record, assigns fields setName(nm); setTutor(tr); setNext(nx); } // accessor methods public String getName() {return name;} public StudentRecordNode getNext(){ return next;} public String getTutor(){return tutor;} // modifier methods public void setName( String nm ) {name = nm;} public void setNext( StudentRecordNode n){next = n;} public void setTutor( String tr ){tutor = tr;} }