Multiple choice technology programming languages

If a method is marked as protected internal who can access it?

  1. Access is limited to the current assembly

  2. Access is limited to the containing class or types derived from the containing class.

  3. Access is limited to the current assembly or types derived from the containing class.

  4. Access is limited to the containing type

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

Protected internal combines both access modifiers as a union: the method is accessible to any code in the same assembly OR to derived classes anywhere, making it more permissive than either modifier alone. It is not an intersection of both conditions.