Another way to say "A room has walls and a roof." is "a space that is walled with a roof is a room"