---
title: "Access Modifiers in .Net"  
description: "Access Modifiers describes the scope of an  object.C# has five Access Modifiers.    Public    Private    Protected    Internal    Protected internal P"  
author: "Anonymous User"  
published: 2010-07-27  
updated: 2020-03-04  
canonical: https://www.mindstick.com/articles/12/access-modifiers-in-dot-net  
category: ".net"  
tags: [".net"]  
reading_time: 1 minute  

---

# Access Modifiers in .Net

##### Access Modifiers describes the scope of an object.

C# has five Access Modifiers.

- Public
- Private
- Protected
- Internal
- Protected internal

##### Public

Public is the most common access specifier in C#. It can be access from anywhere, which means there is no restriction on accessibility. The scope of the accessibility is inside class as well as outside. The type or member can be accessed by any other code in the same assembly or another assembly that references it.

Private

The scope of the accessibility is limited only inside the classes or struct in which they are declared. The private members cannot be accessed outside the class.

Protected

The scope of accessibility is limited within the class or struct and the class derived (Inherited) from this class.

Internal

The internal access modifiers can access within the program that contain its declarations and also access within the same assembly level but not from another assembly.

Protected internal

Protected internal is the same access levels of both protected and internal. It can access anywhere in the same assembly and in the same class also the classes inherited from the same class.

---

Original Source: https://www.mindstick.com/articles/12/access-modifiers-in-dot-net

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
