What are the access-specifiers available in c#?
Answer Posted / archana
1. public - The member can be accessed from anywhere
2. internal - The member can only be accessed from type it
originates from or other types in the same assembly
3. protected - The member can only be accessed from the type
it originates from or from detrieved types of the
originating type
4. private - The member is only accessible by other members
within the type it originates from.
| Is This Answer Correct ? | 52 Yes | 65 No |
Post New Answer View All Answers
What is primitive types in c#?
Explain the difference between and xml documentation tag?
What is mvc in c#?
Do events have return type c#?
What is Global Assembly Cache (GAC) and what is the purpose of it? (How to make an assembly to public? Steps) How more than one version of an assembly can keep in same place?
What is expandoobject in c#?
How does inheritance work in c#?
What is a template class?
How do you prevent a class from being inherited?
Explain how can I get around scope problems in a try/catch?
What is int tryparse in c#?
Define xslt.
What is writeline?
What is a three-tier application.
How many types of constructors are available in c#?