|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectPerson
Student
public class Student
Class that represents a student. A student is a person and has a unique id
| Constructor Summary | |
|---|---|
Student()
Constructor that takes no arguments |
|
Student(String name)
Constructor that takes the student's name |
|
| Method Summary | |
|---|---|
int |
getId()
Method to get the id |
void |
greet()
Method to greet someone |
void |
setId(int theId)
Method to set the identifier |
| Methods inherited from class Person |
|---|
getName, main, setName, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Student()
public Student(String name)
name - the name for this student| Method Detail |
|---|
public int getId()
public void setId(int theId)
theId - the identifier to usepublic void greet()
greet in class Person
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||