Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What are the access-specifiers available in c#?

Answer Posted / soundararajan rajendran

Public
Protected
Internal(Known as "Friend" in C++)
Private
Protected or Internal

Public:
Any one can access the member functions and variables.
Protected:
Only child classes or classes that derive from this can
access.
Internal:
Classes within the same assembly can access but not by
child classes.
Private:
Accessible within the same class only.
Protected or Internal:
Member functions and variables can be accessed from the
classes which are in the same assembly Or can be accessed
from the the child classes.

Is This Answer Correct ?    19 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to get the sum of last 3 items in a list using lambda expressions?

968


What basic steps are needed to display a simple report in crystal?

997


What is difference between abstract class and interface in c#?

1001


How can you prevent escaping on backslashes in C# with string definitions?

1286


Why does dllimport not work for me?

1105


Can destructors have access modifiers?

1011


Is a dll an assembly?

955


Explain the types of assemblies in .net?

1006


If the interface in c# only contains the declaration of the methods and we need to define those methods in the class, then why we use the interface?

1049


What are the different types of assembly?

1108


What namespace is list in c#?

977


Is post back in c#?

1014


How many parameters can a method have c#?

966


What is sqladapter c#?

1004


Why do we overload constructors?

958