Lab 06

This lab uses classes with methods in JavaScript to create a Hotel and Resort object and assoicated properties.



Part 1

This part creates a Hotel class and properties such as Hotel name, location, number of rooms, number of booked rooms, the room types, if hotel has swimming pool, and the restaurants at the hotel. Below are test cases that test the functionality of the Hotel class.





Part 2

This part creates a Resort class which extends the Hotel cass. The resort class creates 3 new properties such as Resort Type, if resort has beach front, and if resort has kids club. Below are test cases that test the functionality of the Resort class.