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
Explain 'managed' mean in the .NET context
What are .net mobile controls features? : Microsoft dot net mobile
How resource files are used in .net?
What is cache coherency and how is it eliminated? : Dot net architecture
Can you explain update progress control?
Explain the types of memory management? : .NET Architecture
Explain about clr?
What are public and private assemblies ?
What are the different pipelining hazards and how are they eliminated? : Dot net architecture
How can we integrate atlas with web services?
Explain about the base class library provided by microsoft.net?
what are the fundamental and common properties of .net controls?
How do I write to the application configuration file at runtime?
i wish to write mcts(microsoft certified technology specialist) exam. can anyone give the model question or format and preparation method?
hi, kindly send WWF(.net 3.5) pdf notes to my id. thanx in advance, chays