Default Access Modifiers in C#

top level class: internal

method: private

members (of class): private (including nested classes)

members (of interface or enum): public

constructor: private (note that if no constructor is explicitly defined, a public default constructor will be automatically defined)

delegate: internal

interface: internal

No comments:

Post a Comment