What are the access-specifiers available in c#?

Answer Posted / srinu

private --> the members can access in the same class of
same project

internal --> the members can access from the same project,
but any class

protected --> the child class members of the class can
access the members either in same project or another
project.

protected internal --> dual scope( internal + protected ).

pubic -->access from any where.

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an assembly loader?

511


What does public mean in c#?

514


Describe the process of “exception handling implementation” in c#?

513


What is dependency in software?

521


What is boolean conditions in c#?

499






Define an abstract class?

504


Explain how is the dll hell problem solved in .net?

459


Will the following code compile?

552


How objects are stored in memory?

497


How Do You Convert A Value-type To A Reference-type?

520


What is scaffolding in c#?

476


Explain the Different types of configuration files in .net?

569


Differentiate between the public and private ?

561


What is the difference between Decorator and Adapter pattern?

523


What is streamreader/streamwriter class?

514