What are the different access modifier? Explain in detail?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / pushparaj pentakota(anakapalli
public == accessble from any where,no restriction.
private == aceessble only from within the class only.
protected == accessble from same class and child class also
but not from non-child class.it may be within
project or out side of the project also.
internal == accessble only from same class and child class
and non-child class also but within the project
only.
protected internal == accessble from any where except
non-child class of out side of the
project.
Is This Answer Correct ? | 0 Yes | 0 No |
What is Opf3
What happens when you try to update data in a dataset in .net while the record is already deleted in sql server as backend?
When should you use Abstract Class vs Interface while programming? Give 1 Example
3 Answers CSS Corp, Hexaware, T3 Softwares,
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.....
Explain the process of gc?
IS IT Possible to inherit the AJAX page from child class which(child) is inherit from page class.Because i should apply some security in child class
How Web service create Proxy Using WSDL?
what is just in time compilation?
how do you hide maximize,minimize and close box at the form title bar?
Can you explain update progress control?
What is the difference between l1 and l2 cache? : Dot net architecture
What is Video Streaming in .net??