LLD - Design — Hotel Booking System
Consider this code:
What happens when this code runs?
class Room:
def __init__(self, name):
self.name = name
class Lab(Room):
def __init__(self, name, equipment):
self.equipment = equipment
lab = Lab('Chemistry Lab', ['Microscope'])
print(lab.name, lab.equipment)What happens when this code runs?
