Multiple choice technology programming languages

what is the default access specifier for a Top-level Class, which are not nested into other Classes?

  1. a. public

  2. b. private

  3. c. protected

  4. d. internal

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

In C#, top-level classes default to internal access modifier, making them accessible only within the same assembly. Private and protected are not allowed for top-level classes, and public must be explicitly declared.