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 a jagged array?
Why is it not a good idea to use empty destructors?
What is main thread in c#?
What framework is used for performance testing/load testing?
Can you use foreach iteration on arrays in c#?
Why do we need constructor in c#?
How do you escape c#?
What is xml comments in c#?
Suppose two interfaces have same method, so how will you implement these methods in derive class?
What is the predicate of a sentence?
What is a class level variable in c#?
Are there functions in c#?
How many types of collections are there in c#?
Which .gang of four. Design pattern is shown below?
Explain why do I get an error (cs1006) when trying to declare a method without specifying a return type?