javadocsample
Class Student

java.lang.Object
  extended by javadocsample.Person
      extended by javadocsample.Student

public class Student
extends Person

class for a student with a name and a student number.


Constructor Summary
Student()
           
Student(java.lang.String initialName, int initialStudentNumber)
           
 
Method Summary
 boolean equals(Student otherStudent)
           
 int getStudentNumber()
           
 void reset(java.lang.String newName, int newStudentNumber)
          Resets student name and number.
 void setStudentNumber(int newStudentNumber)
          Sets student number.
 java.lang.String toString()
           
 void writeOutput()
           
 
Methods inherited from class javadocsample.Person
getName, sameName, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Student

public Student()

Student

public Student(java.lang.String initialName,
               int initialStudentNumber)
Parameters:
initialName - student name
initialStudentNumber - student number
Method Detail

reset

public void reset(java.lang.String newName,
                  int newStudentNumber)
Resets student name and number.


getStudentNumber

public int getStudentNumber()
Returns:
student number

setStudentNumber

public void setStudentNumber(int newStudentNumber)
Sets student number.


writeOutput

public void writeOutput()
Overrides:
writeOutput in class Person

equals

public boolean equals(Student otherStudent)
Parameters:
otherStudent - the Student object being compared to the calling object.
Returns:
true if calling object and otherStudent have the same name and the same student number.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object