Question: In this question, you will implement two methods for a class Hotel that is part of a hotel reservation system. The Hotel class uses the

In this question, you will implement two methods for a class Hotel that is part of a hotel reservation system. The Hotel class uses the Reservation class shown below. A Reservation is for the person and room number specified when the Reservation is constructed.
public class Reservation
// Create a Reservation of the room with roomNumber for the guest with guestName public Reservation (String guestName, int roomNumber)//* implementation not shown */
// Returns the name of the guest that made the Reservation public String getName ()
// private data and other methods not shown
An incomplete declaration for the Hotel class is shown below. Each hotel in the hotel reservation system
public class Hotel
private Reservation[] rooms; private ArrayListI****r>nr**?**nnrrn
 In this question, you will implement two methods for a class

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!