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 is accessspecifier and explation each with example?

Answer Posted / pranoti moghe

There are basically 5 access specifiers in .net...
Public - meaning members can be accessed from anywhere..even outside the assembly...
Private - meaning members cannot be accessed outside a class..
Protected - meaning members can be accessed in that class and to the derived classes....
Protected internal
Internal

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why static constructor is parameterless in c#?

1058


Which operator cannot be overloaded in c sharp?

882


What is static variable in c#?

963


what is the syntax to inherit from a class in c#?

1019


Why use a singleton instead of static methods?

906


How do partial classes work in c#?

957


What is a singleton unity?

987


What is encapsulation in csharp?

999


what is collections in .net? why we use?

2162


Can hashtable have duplicate keys in c#?

898


Major difference between Basic httpbinding and WShttpbinding?

1070


What are class fields?

963


Why are mutable structs evil?

995


What is datagridview in c#?

1139


How to sign an assembly with strong name?

1015