A door with a lock can be locked to keep people out of a room.