フリー問題

Java Foundations のフリー問題 3 / 20 問目

問題文

A class keeps a field private and lets other classes read its value through a method that only returns it. Which role does that method play?

選択肢

  1. The reading method automatically works as one launcher method for the private field.
  2. The reading method automatically works as one accessor operation for the private field.
  3. The reading method automatically works as one mutator member for the private field.
  4. The reading method automatically works as one constructor routine for the private field.

解答・解説を確認するには

正解と解説の確認、回答の記録には無料登録が必要です。登録すると演習モードでフリー問題に回答し、正誤と解説をその場で確認できます。