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 do you know about machine.config file ?

572


What is cache coherency and how is it eliminated? : .NET Architecture

530


Explain the purpose of cache? How is it used? : Dot net architecture

547


Explain cache memory? : .NET Architecture

555


how to delete the record using data reader

1859






What is password attribute of the textbox control of .net mobile? : Microsoft dot net mobile

471


Explain the purpose of cache? How is it used? : .NET Architecture

548


What is the use of TPL DATAFLOW?

553


Explain about metadata?

528


how to create applications by using Visual Studio 2012?

579


Define domestic architecture artifacts? : Dot net architecture

531


What are the major differences between services and web services?

501


What is the mesi? : .NET Architecture

607


What is a service class?

542


What is Com Callable wrapper?when it will created?

536