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

What is the difference between .net mobile pages and ordinary .net web page? : Microsoft dot net mobile

528


Define pipelining? : Dot net architecture

607


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

1858


Explain the difference between l1 and l2 cache? : Dot net architecture

552


Explain dotnet framework ?

525






what is inheritancy where u required ?

1516


Explain the difference between l1 and l2 cache? : .NET Architecture

557


Explain about metadata?

524


where should I put this information then?

587


State the different levels of exceptional safety?

571


Explain some of the disadvantages due to microsoft.net?

541


When do I need to use gc.keepalive?

648


What is the difference between primary & secondary storage device? : Dot net architecture

525


How can I create a application?

516


What is the difference between absolute expiration and sliding-time expiration?

536