nerdexam
Microsoft

98-361 · Question #11

You are designing a class for an application. You need to restrict the availability of the member variable accessCount to the base class and to any classes that are derived from the base class…

The correct answer is C. Private. See the full explanation below for the reasoning.

Question

You are designing a class for an application. You need to restrict the availability of the member variable accessCount to the base class and to any classes that are derived from the base class. Which access modifier should you use?

Options

  • AInternal
  • BProtected
  • CPrivate
  • DPublic

How the community answered

(64 responses)
  • A
    8% (5)
  • B
    5% (3)
  • C
    70% (45)
  • D
    17% (11)

Community Discussion

No community discussion yet for this question.

Full 98-361 Practice