-
|
Default accessibility level of an interface is "internal", while interface members are "public" by default. Why? |
Beta Was this translation helpful? Give feedback.
Answered by
HaloFour
Nov 12, 2024
Replies: 1 comment 1 reply
-
|
The default accessibility of all types is |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Wit-2k
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The default accessibility of all types is
internal. The default accessibility of members isprivate, 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.