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 an object? They are instance of classes. It is a basic unit of a system. An object is an entity that has attributes, behavior, and identity. Attributes and behavior of

Which property on a Combo Box do you set with a column name, prior to setting the Data Source, to display data in the combo box? ComboBox.DataValueField = "ColumnName" When

What is a delegate? The Delegate is the class that can hold a reference to a method or a function. The Delegate class has a signature and it can only reference to those methods

What is the difference between the Select clause and SelectMany() method in LINQ? Both the Select clause and SelectMany() method are used to produce a result value from a sourc

I need some a VBA expert urgent Project Description: I require a VBA expert for scraping data from internet. .NET, Excel, Data Processing, Visual Basic

What is three tier architecture? The 3 tier software architecture was comes into action in the 1990s to overcome the limitations of the 2 tier architecture. There are 3 laye

Project Description: I require a C# Console project written to simply enter an Origin and Destination/Date on the United Airlines Site, from the returned page select and return

What is difference between abstract classes and interfaces? The difference b/w abstract and interfaces are s follows:- 1.     The Abstract classes can have concrete methods

Question: (a) The ObjectDataSource control is an alternative design approach to using AccessDataSource or SqlDataSource controls. Explain and illustrate how an ObjectDataSourc

What Is The Difference Between ViewState and SessionState? View State persist the values of controls of certain page in the client (browser) when post back operation done. When