1.

Accessibility Levels for class,enum,struct,interface

Answer»

Below table HELPS to UNDERSTAND what are the different member DEFAULT accessibility and what accessibility they can opt and what they cannot opt.

MemberTypeDefault accessibilityAllowed accessibility
enumPUBLICNone
classPRIVATEpublic
protected

internal
private
protected
internal
interface public None
struct private public
internal
private


Discussion

No Comment Found