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

Is c# a keyword?

919


Explain the types of assemblies in .net?

952


What is var c#?

995


I was trying to use an out int parameter in one of my functions. How should I declare the variable that I am passing to it?

985


Explain the Different types of configuration files in .net?

997


Which attribute is used in order that the method can be used as webservice?

938


Can an abstract class have a constructor c#?

919


How big is an int in c#?

981


Which namespaces are necessary to create a localized application?

1053


What is an enumerator c#?

917


Why do we need interface in c#?

997


What is int tryparse in c#?

947


Are constructors inherited c#?

902


How many constructors can a class have in c#?

911


What does f mean in c#?

904