Different accessibility levels in .net, DOT NET Programming

What are the different accessibility levels in .NET?

The five levels of access modifiers are as follows:-

  • Private: The members of the class only have the access.
  • Protected: All the members in current class & in derived classes can access the variables.
  • Friend (internal in the C#):- Only the members in current project have access to the elements.
  • Protected friend (protected internal in the C#) :- All members in the current project & all members in derived class can access the variables.
  • Public: - All the members have access in all classes and projects.
Posted Date: 9/22/2012 3:08:54 AM | Location : United States







Related Discussions:- Different accessibility levels in .net, Assignment Help, Ask Question on Different accessibility levels in .net, Get Answer, Expert's Help, Different accessibility levels in .net Discussions

Write discussion on Different accessibility levels in .net
Your posts are moderated
Related Questions
What is a parameter? Explain the new types of parameters introduced in C# 4.0. A parameter is a special type of variable, which is used in a function to give a piece of informa

I've some encrypted data list of customers that are stored in a sql server db. These data are encrypted using visual basic, using a specific dll, from what I could see. The work

What are LINQ query expressions? A LINQ query, also known as a query expression, having of a combination of query clauses that identify the data sources for the query. It conta

Develop a Windows Backup Application Application Goal The goal is to prepare an easy to use application that provides the user peace of mind that all of their firewalls are b

Can we get a strongly typed resource class? You can now get strongly types classes in the VS.NET intellisense as shown in the figure below. Figure: - Strongly typed re

Project Description: I need support on .net c# automation testing Additional Project Description: Project is on Visual Studio, creating Automation and TFS Test development

Describe the roles of CLR in .NET Framework. CLR gives an environment to execute .NET applications on target machines. CLR is also a common runtime environment for all .NET cod

Consuming a web service with SOAP on c# .NET Project Description: I need to consume a web service with SOAP. I have xml file and some description. I need it to be done

What is a cloud? A cloud is a combination of hardware, storage, networks, services, and interfaces that helps in delivering computing as a service. It has generally three users

Net project Project Description: We want to make .net project Microsoft Active Directory, PMS Lync 2010 - 2013 databases creating a license key for their SW generati