|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.ucsb.cs56.S11.bpmccurdy.lab03.Student
public class Student
A student has a name and a perm number.
Constructor Summary | |
---|---|
Student(java.lang.String theName,
int thePermNumber)
Constructor for objects of class Student |
Method Summary | |
---|---|
java.lang.String |
getName()
Get the name |
int |
getPermNumber()
Get the perm number |
void |
setName(java.lang.String newName)
Set the name |
void |
setPermNumber(int newPermNumber)
Set the permNumber |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Student(java.lang.String theName, int thePermNumber)
theName
- the name of the studentthePermNumber
- the perm number for the studentMethod Detail |
---|
public java.lang.String getName()
public int getPermNumber()
public void setName(java.lang.String newName)
newName
- new name of the studentpublic void setPermNumber(int newPermNumber)
newPermNumber
- new perm number of the studentpublic java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |