233k views
3 votes
Which access modifier is not allowed in a struct? Private Public Protected Internal All of the Above None of the Above A block {...} in C# is a parameter brackets single statement namespace scoping mechanism

1 Answer

4 votes

Answer:

Protected.

Step-by-step explanation:

Structures and classes that are declared within the namespace directly can be internal or public by default they are internal.Struct members can be declared internal,public or private.Since structures does not support inheritance so they does not support protected access modifier.Hence we conclude that the answer is Protected.

User Asim Omer
by
7.1k points