Hotel Customer Inheritance | ISC Computer Science 2026 Theory
A superclass Hotel has been defined to store the details of a hotel. Define a subclass Customer to calculate the total bill for a customer as per the following criteria: Room type Additional Amount Executive 10% of room rent Suite 20% of room rent The details of the members of both the classes are given below: Class name : Hotel Data members/instance variables : hname: to store hotel name roomrent: to store the rent per day Methods/Member functions : Hotel(...): parameterized constructor to assign values to its data members void show(): to display hotel details Class name : Customer Data members/instance variables : cname: to store customer name days: to store the number of days of stay type: to store the room type surcharge: to store the additional amount amt: to store the total amount Methods/Member functions : Customer(...): par...