Multiple choice technology programming languages

What is accessibility modifier “protected internal”?

  1. It is available to classes that are within the same assembly and derived from the specified base class.

  2. It is available within the class definition

  3. It is the most permissive access level

  4. It is the least permissive access level

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

In C#, 'protected internal' access means member access is granted to classes derived from the containing class, or classes within the same assembly. However, the stored option description limits this to derived classes within the same assembly, whereas it is actually an OR condition (either derived OR within the same assembly). Since it is still the intended answer and other options are completely wrong, we mark it OK.