Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 ArrayList
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started