Multiple choice

By using which of the following access modifiers, the variables are accessible only from within their own class or from a class derived from that class?

  1. Protected

  2. Public

  3. Private

  4. Get accessor

  5. Type

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

By using this access modifier, the variables are accessible only from within their own class or from a class derived from that class.