|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Receptionist
public class Receptionist
Class for a Receptionist object facilitating transaction for a Hotel.
Constructor Summary | |
---|---|
Receptionist(Hotel h)
Constructor for Receptionist objects. |
Method Summary | |
---|---|
void |
checkIn(int roomNumber,
String occupantName,
int day)
Facilitates checking into a room. |
double |
checkOut(int roomNumber,
int day,
double extraCharges)
Facilitates checking out of a room. |
double |
getCash()
Returns the collections for this receptionist. |
String |
occupant(int roomNumber)
Returns the current occupant of the given room. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Receptionist(Hotel h)
the
- hotel the receptionist works in.Method Detail |
---|
public void checkIn(int roomNumber, String occupantName, int day)
roomNumber
- the room number (101, 102, 103)occupantName
- name of the occupantday
- the day the occupant wishes to check inpublic double checkOut(int roomNumber, int day, double extraCharges)
roomNumber
- the room number (101, 102, 103)day
- the day the occupant will check outextraCharges
- any extra charges (beyond the room rate)
public double getCash()
public String occupant(int roomNumber)
roomNumber
- the room number (101, 102, 103)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |