nerdexam
GIAC

GSSP-.NET · Question #239

(Topic 2) Which of the following code snippets is an example of tight encapsulation?

The correct answer is A. private int x. See the full explanation below for the reasoning.

Question

  • (Topic 2)

Which of the following code snippets is an example of tight encapsulation?

Options

  • Aprivate int x;
  • Bprivate int x;
  • Cpublic int x;
  • Dprotected int x;
  • Eint x;

How the community answered

(49 responses)
  • A
    84% (41)
  • C
    10% (5)
  • D
    2% (1)
  • E
    4% (2)

Community Discussion

No community discussion yet for this question.

Full GSSP-.NET Practice