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 'managed' mean in the .NET context

703


What are .net mobile controls features? : Microsoft dot net mobile

500


How resource files are used in .net?

560


What is cache coherency and how is it eliminated? : Dot net architecture

509


Can you explain update progress control?

538






Explain the types of memory management? : .NET Architecture

529


Explain about clr?

589


What are public and private assemblies ?

548


What are the different pipelining hazards and how are they eliminated? : Dot net architecture

605


How can we integrate atlas with web services?

535


Explain about the base class library provided by microsoft.net?

524


what are the fundamental and common properties of .net controls?

1612


How do I write to the application configuration file at runtime?

535


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

2318


hi, kindly send WWF(.net 3.5) pdf notes to my id. thanx in advance, chays

1897