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 race around condition? : .NET Architecture How can it be overcome? : .NET Architecture
Explain .net mobile input controls? : Microsoft dot net mobile
if there are two application 1 and 2 having a variable x in both app if client1 changes value of x in 1 app client 2 want reads the value of x from 2 app what resultant value will he get
Explain dma? : .NET Architecture
Explain about common language infrastructure?
Explain the use of virtual, sealed, override, and abstract.
Explain how does .net mobile work? : Microsoft dot net mobile
Explain write back and write through caches? : Dot net architecture
How to improve the cache performance? : Dot net architecture
Define the mesi? : Dot net architecture
What are the new features of .net 2.0?
I am working with asp.net 2005 and Crystal report 10. I have an image field on my dataset to show on Crystal report.And the image is shows dynamically from database in image field of CR. The image field is showing well on my Crystal report on its first page with all other data but when i click to open second page of CR,it does not show any data on that.I found that this is because of adding the image field on crystal report. Because when i remove the image field from the CR then it will run both the pages of CR. I am using the Page Load event to bind CR data with Database. And i have already check with the Init event to bind CR , but it still not shows the data on second page when i use image field on that. Please give solution for that.....
How can implement drag and drop using atlas?
any one can explain about projectarchitecture and project approach briefly
What's new in the .net 2.0 class library?