Skip to content

Accessibility level of interface and its members #8581

Answered by HaloFour
Wit-2k asked this question in General
Discussion options

You must be logged in to vote

The default accessibility of all types is internal. The default accessibility of members is private, but since an interface describes a contract, interface members must be publicly accessible. Other accessibility levels weren't supported until C# 8.0 with default interface implementation.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Wit-2k
Comment options

Answer selected by Wit-2k
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants