|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--Dob
| Method Summary | |
int |
getAge()
This function calculates age from date of birth given as parameter |
int |
getDay()
Retruns date of date of birth |
int |
getMonth()
Returns month of birth |
int |
getYear()
Returns year of birth |
void |
printAge()
Print age onto console |
void |
printAge(java.io.PrintStream p)
Print age in a PrintStream object pass as a argument |
void |
printDob()
Print dob onto console |
void |
printDob(java.io.PrintStream p)
Print dob in a PrintStream object pass as a argument |
void |
setDob(int d,
int m,
int y)
Settting date of birth date, month and year of birth taken as arguments |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public void setDob(int d,
int m,
int y)
public int getDay()
public int getMonth()
public int getYear()
public int getAge()
public void printDob(java.io.PrintStream p)
public void printDob()
public void printAge(java.io.PrintStream p)
public void printAge()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||