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

Why do we need abstract class?

478


What is the delegates in c#?

514


Explain types of comment in c# with examples

484


What is new method in c#?

527


What is delimiter in c#?

485






Explain the difference between class and interface in .net?

436


Is everything an object c#?

501


What do you mean by object pooling?

532


What is func delegate in c#?

511


How many types of interface are there in c#?

477


What is difference between class and abstract class in c#?

463


Is equal in c#?

513


What is ulong in c#?

576


What is difference between method and function in c#?

472


What is the difference between Decorator and Adapter pattern?

528