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 is Object Caching in Visual Studio 2010?
Whate are resource files? How are they used in .net?
What is the mesi? : Dot net architecture
Explain about appdomains?
Can I create my own metadata attributes?
Explain the types of memory management? : Dot net architecture
What are the types of application software?
Difference between throw exception and rethrowing ?
What is the use of web.config?
how can we achieve language interoperability through CLS? How MSIL works?
difference between data reader and dataset
What are the major differences between services and web services?
which is the institute in hyderabad for providing the live project industry training
Explain difference between inprocess vs out process session state? : .NET Architecture
What re interop services?