There are 5 different access modifiers available in .NET
- Public – The members declared as public is accessible to all.
- Private – The members declared as private is accessible only within the same type.
- Internal – The members declared as internal is accessible only with in the same assembly.
- Protected – The members declared as protected is accessible to the same type or inherited type.
- Protected Internal – The members declared as protected internal is accessible only to the same assembly or a derived class in different assembly.
Leave a Reply