Question: Write a Python program superclass that represent the HotelRoom class, with attributes: price _ per _ night and capacity. Types of hotel rooms are: a

Write a Python program superclass that represent the "HotelRoom" class, with attributes:
price_per_night and capacity. Types of hotel rooms are:
a. single (1-2 people),
b. double (2-4 people) and
c. Suits (3-5 people).
You can choose the prices according to your judgment.
Using python, create the base class (superclass) and subclasses to represent the given problem. Write a
separate test module where 3 instances of the class are created, and the methods are tested by giving the
required details and printing the details for each class.
 Write a Python program superclass that represent the "HotelRoom" class, with

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!