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
What are the options provived by vss to the user? how it will help us while delevoping application?
Explain difference between machine config vs. Web config? : .NET Architecture
What is .net viewstate?
What is a service class?
any one can explain about projectarchitecture and project approach briefly
Explain .net mobile events? : Microsoft dot net mobile
Can I create my own metadata attributes?
How do I stop a thread?
what is tracing? Where it used?
Define the mesi? : Dot net architecture
What is textbox control of .net mobile? : Microsoft dot net mobile
difference between Response.write,server.transfer and also which one is used when ?
How does an appdomain get created?
Differences between VS 2005, 2008 and 2010 ?
Describe the Managed Execution Process in .NET?