Multiple choice technology programming languages

What is the default access specifier for a top-level Class, which are not nested into other classes?

  1. Public

  2. Private

  3. Protected

  4. Internal

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

In C#, top-level classes (classes not nested within other classes) default to internal accessibility if no access modifier is specified. They can only be declared as public or internal, and cannot be declared as private or protected at the namespace level.