Question
C++ Programming: Create a class called Room to represent a hotel room. The class has the following data members: - Room number ( of type
C++ Programming:
Create a class called Room to represent a hotel room. The class has the following data members:
- Room number ( of type integer) (250 rooms in this hotel) - Room type that can be one of the following two values: Regular or Suite - Room availability (Boolean). This attribute is true if the room is available; false otherwise
The class should have at least the following member functions:
- One or more constructors - Checking if a room is available - Returning the room type - A function that prints information about a customer - A destructor
Create a driver to test the class Room.
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