What is the default access modifier of a class?
internal
, if defined directly in the namespace (probably most classes):
Internal is the default if no access modifier is specified
For classes within other classes, the default is private
, like class members:
The access level for class members and struct members, including nested classes and structs, is private by default.
Source: http://msdn.microsoft.com/en-us/library/ms173121.aspx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With