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

What is a collection class in c#?

915


How big is an int16?

892


Why are strings immutable in c#?

902


how background thread access to ui control?

1055


What are Uses of CLR

1033


Why ienumerable is used in c#?

881


What is using in c#?

874


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

952


What is marshalling and what are different kinds of marshalling?

920


Why do we overload constructors?

905


What is mean by c#?

943


Give 2 scenarios where static constructors can be used?

934


What is an array of arrays called?

868


What is difference between yielding and sleeping?

885


What's the difference between System.String and System..StringBuilder in C#?

1008