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
What is the difference between struct and class in c#?
If the interface in c# only contains the declaration of the methods and we need to define those methods in the class, then why we use the interface?
How do I port "synchronized" functions from visual j++ to c#?
What are delegates?
How can i Spawn a Thread
What is difference between asp net and c# net?
How many bytes is an int c#?
What is fcl in c#?
If I have more than one version of one assemblies, then how'll I use old version (how/where to specify version number?)in my application?
Are c# strings null terminated?
What is foreach loop in c#?
Explain a MSIL ? Why is it appreciated by all developers?
What is the and operator in c#?
What is an array class?
What is asax file in c#?