The word "公厕" is formed by directly combining the character "公", which means "public", with the character "厕", which means "toilet", resulting in a compound that explicitly refers to a public toilet.