public abstract class Student
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Student.Nobody
Default class for "nobody"
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
name
Name of the student
|
Constructor and Description |
---|
Student(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName() |
abstract boolean |
isBusy(Day day,
int hour)
This method maps the student's agenda, it tells us if the student is busy
or not
|
void |
setName(java.lang.String name) |
java.lang.String |
toString()
This class represents the student who never is busy or the concept that
nobody does something
|
public java.lang.String getName()
public void setName(java.lang.String name)
public abstract boolean isBusy(Day day, int hour)
day
- the day of the week in which we check if the student is busyhour
- the hour of the day in which we check if the student is busy.
This parameter must be in the interval 0-24public java.lang.String toString()
toString
in class java.lang.Object