|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuniversity.Person
university.Student
public abstract class Student
Abstract class for the students in the university.
Constructor Summary | |
---|---|
Student()
Creates a new instance of Student |
|
Student(java.lang.String aName,
Sex aGender,
Address address,
Unit aUnit)
Creates a new instance of Student. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Clone a new object |
boolean |
isAllowedToRegister()
Checks if the Student is allowed to register for classes. |
void |
setAllowedTORegigister(boolean canRegister)
Set if the Student is allowed to register for class. |
java.lang.String |
toString()
Returns A String representation of a Student. |
Methods inherited from class university.Person |
---|
getAddress, getAffiliation, getGender, getID, getName, setName |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Student()
public Student(java.lang.String aName, Sex aGender, Address address, Unit aUnit)
aName
- The name of the Student.aGender
- The sex of the Student.address
- The address of the Student.aUnit
- The unit the Student belongs to.Method Detail |
---|
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class Person
java.lang.CloneNotSupportedException
- Throws CloneNotSupportedExceptionpublic final void setAllowedTORegigister(boolean canRegister)
canRegister
- Set if the Student can register for class.public final boolean isAllowedToRegister()
public java.lang.String toString()
toString
in class Person
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |