Question
2. A hotel has a number of rooms that can be rent by guests. There are also a number of bathrooms, which are either connected
2. A hotel has a number of rooms that can be rent by guests. There are also a number of bathrooms, which are either connected to a specific room or are used to service multiple rooms on the floor. The rooms are classified into three types: single rooms, double rooms and family rooms.
a) List the THREE (3) different types of classes you would want to include in your system. (3 marks)
b) Give ONE (1) attribute for EACH class that you have identified in a). (3 marks)
c) Based on your answer in a) and b), do arrange them into an inheritance hierarchy if necessary. (5 marks)
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