Question discussion

In C#, a member declared with the 'internal' access modifier is accessible

1937Medium DSSSB TGT Computer Science 0 replies 1 views
0

In C#, a member declared with the 'internal' access modifier is accessible

  • Aonly within the same class
  • Bonly within derived classes
  • Cwithin the same assembly
  • Dfrom anywhere in any assembly
Correct answer: C

Explanation

'internal' restricts access to code in the same assembly (project); 'protected internal' adds access from derived classes.

Discussion 0

Nobody has replied yet. Start the discussion!