LLD - Design — Hotel Booking System
Given this Python-like pseudocode for room types:
What will be the output?
class Room:
def __init__(self, name):
self.name = name
class Bedroom(Room):
def __init__(self, name, bed_size):
super().__init__(name)
self.bed_size = bed_size
room = Bedroom('Master', 'King')
print(room.name, room.bed_size)What will be the output?
