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 the purpose of cache? How is it used? : Dot net architecture
Explain .net mobile automatic paging? : Microsoft dot net mobile
what is the difference between running an application with and without debugger?
Explain .net mobile events? : Microsoft dot net mobile
What is the access level of the visibility type internal?
How can implement drag and drop using atlas?
What are public and private assemblies ?
So what exactly is the configuration file for then?
What are the important principles of soa (service oriented architecture)?
Explain the number or character entered through keyboard gets converted to equivalent ascii code & it get stored on ram in the binary form. What is the exact procedure. : Dot net architecture
Name some changes done since version 3.0?
What is the difference between absolute expiration and sliding-time expiration?
Explain about developer benefit from memory management?
HttpHendler and HttpModules
What is private constructor? And it's use?