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

What is deferred execution?

828


Is enum a class c#?

831


What is a private class in c#?

1026


What is object type in c#?

908


Is an array an object c#?

884


What is the and operator in c#?

920


What does do in c#?

898


What is the difference between struct and class in c#?

1150


what are the contents of an assembly ?

935


What exactly is serverless?

788


Is there hashmap in c#?

872


What is a dbml?

848


How do we achieve encapsulation in c#?

894


How is the syntax written to inherit from a class in C#?Give an example ?

1011


Classes and structs can be declared as static, is this statement true or false?

981