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 different access modifier? Explain in detail?

Answer Posted / imatoria

The access modifier on a property applies to both its get
and set accessors, so different modifiers can’t be applied
for same property.
1. Public- Accessible outside the class through object.
2. Private- Accessible inside the class by member
functions.
3. Protected- Just like private but accessible in derived
class also but by member functions.
4. Internal- Visible inside the Assembly. Accessible through
members. Logic is same as global private.
5. Protected Internal- Visible inside the assembly and
outside the assembly through derived classes.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the purpose of cache? How is it used? : .NET Architecture

1028


Explain the difference between primary & secondary storage device? : .NET Architecture

1008


Explain pipelining? : Dot net architecture

1054


Can I create my own permission set?

1109


Explain Singleton design pattern in .net

1048


i wish to write mcts(microsoft certified technology specialist) exam. can anyone give the model question or format and preparation method?

2829


How to implement the display in the class printdoc (how to resolve the naming conflict) a: no naming conflicts

1110


Explain 'managed' mean in the .NET context

1168


What is application frame host?

1132


What is Com Callable wrapper?when it will created?

993


Can I create my own context attributes?

1020


How does an appdomain get created?

1010


What is cache coherency and how is it eliminated? : .NET Architecture

1054


Explain difference between inprocess vs out process session state? : .NET Architecture

1044


difference between data reader and dataset

2280