問題文
A library wants one of its packages to be readable by two companion modules while it stays hidden from everybody else. Which directive expresses that?
選択肢
- An opens directive for that package that names the two companion modules, because that form limits ordinary access to the modules that are named
- A requires transitive directive in each of the two companion modules, because that form asks for access to a package that is otherwise closed
- An export of that package that names the two companion modules after the keyword for the target, so that no other module is able to read the package
- An export of that package without any target, together with a requires directive in the library that names the two companion modules as the readers