Class Student

java.lang.Object
  extended by Student

public class Student
extends java.lang.Object

Represents a student object. A student can be enrolled in many courses.


Constructor Summary
Student(java.lang.String name)
          Creates a new Student with the given name.
 
Method Summary
 java.lang.String getName()
          Gets the first and last name of this Student.
 void setName(java.lang.String newName)
          Changes the name of this Student.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Student

public Student(java.lang.String name)
Creates a new Student with the given name. The name should include both first and last name.

Method Detail

getName

public java.lang.String getName()
Gets the first and last name of this Student.

Returns:
this Student's name.

setName

public void setName(java.lang.String newName)
Changes the name of this Student. This may involve a lengthy legal process.

Parameters:
newName - This Student's new name. Should include both first and last name.