What are the different access modifier? Explain in detail?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Use of Enable view state ? if turn off what happen ?

3968


Can you Explain element .net mobile with example? : Microsoft dot net mobile

567


What is Com Callable wrapper?when it will created?

620


Explain a .net mobile example with details? : Microsoft dot net mobile

553


What is .net mobile lists. : Microsoft dot net mobile

563






What is the use of TPL DATAFLOW?

633


What are library functions?

628


Do you know textbox and textview controls of .net mobile? : Microsoft dot net mobile

594


How cache coherency is eliminated? : Dot net architecture

590


Explain dma? : .NET Architecture

622


What is cache coherency? : Dot net architecture

564


What are the types of memory management? : Dot net architecture

564


Xmlserializer is throwing a generic "there was an error reflecting myclass" error. How do I find out what the problem is?

635


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

1983


What is the importance of updatepanel control?

630