|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectStudent
public class Student
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 |
---|
public Student(java.lang.String name)
Method Detail |
---|
public java.lang.String getName()
public void setName(java.lang.String newName)
newName
- This Student's new name.
Should include both first
and last name.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |