Implement a Door class and describe below as well as a TestDoor that instantiates three Door objects labeled “Enter”, “Exit”, and “Treasure”. The “Enter” door should be left unlocked and opened. The “Exit” door should be left closed and locked. The “Treasure” door should be left open but locked.
A Door class can:
Display an inscription
Be either open or closed, and
Be either locked or unlocked.
Here are some rules about how Doors work: