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:
pricepernight and capacity. Types of hotel rooms are:
a single people
b double people and
c Suits 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 instances of the class are created, and the methods are tested by giving the
required details and printing the details for each class.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
