|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnathan.middleware.StudentImpl
public class StudentImpl
The implementation class for Student Interface.
Constructor Summary | |
---|---|
StudentImpl()
Creates a new intance of StudentImpl |
|
StudentImpl(java.lang.String aName,
java.lang.String aStudentNumber,
int aAge,
java.lang.String aAddress,
java.lang.String aProgram)
Creates a new instance of StudentImpl |
Method Summary | |
---|---|
java.lang.String |
getAddress()
|
int |
getAge()
Get the age of the student |
Grade |
getGrade()
Get the grades of the student |
java.lang.String |
getName()
Get the name of the student |
java.lang.String |
getProgram()
Get the program of the student |
java.lang.String |
getStudentNumber()
Get the student number |
void |
setAddress(java.lang.String address)
set the address for the student |
void |
setAge(int age)
set the age of the student |
void |
setGrade(Grade grade)
set the grades of the student |
void |
setName(java.lang.String name)
set the name of the student |
void |
setProgram(java.lang.String program)
set the program of the student |
void |
setStudentNumber(java.lang.String studentNumber)
set the student number for the student |
java.lang.String |
toString()
toString returns a string representing the student |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StudentImpl()
public StudentImpl(java.lang.String aName, java.lang.String aStudentNumber, int aAge, java.lang.String aAddress, java.lang.String aProgram)
aName
- the name of the studentaAge
- the age of the studentaAddress
- the address of the studentaProgram
- the program the student is enrolled inMethod Detail |
---|
public java.lang.String getName()
getName
in interface Student
public int getAge()
getAge
in interface Student
public java.lang.String getProgram()
getProgram
in interface Student
public java.lang.String getStudentNumber()
getStudentNumber
in interface Student
public Grade getGrade()
getGrade
in interface Student
public void setGrade(Grade grade)
setGrade
in interface Student
grade
- public java.lang.String toString()
toString
in interface Student
toString
in class java.lang.Object
public java.lang.String getAddress()
public void setAddress(java.lang.String address)
Student
setAddress
in interface Student
address
- The address to set.public void setAge(int age)
Student
setAge
in interface Student
age
- The age to set.public void setName(java.lang.String name)
Student
setName
in interface Student
name
- The name to set.public void setProgram(java.lang.String program)
Student
setProgram
in interface Student
program
- The program to set.public void setStudentNumber(java.lang.String studentNumber)
Student
setStudentNumber
in interface Student
studentNumber
- The studentNumber to set.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |