Multiple choice technology programming languages

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

  1. Access is limited to current assembly

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

  3. Access is limited to the containing type

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

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

The protected internal access modifier in C# combines two access levels: protected AND internal. Members marked protected internal can be accessed from within the same assembly OR from derived classes (even in different assemblies). It's a union of both access modifiers, not an intersection.