What are the access-specifiers available in c#?
Answer Posted / ranganathkini
The access-specifiers available in C# are:
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. protected internal - implies protected OR internal ( not
protected AND internal )
5. private - The member is only accessible by other members
within the type it originates from.
| Is This Answer Correct ? | 238 Yes | 33 No |
Post New Answer View All Answers
What is stringwriter c#?
Is clr a compiler?
Are c# destructors the same as c++ destructors?
How to find Percentage, name ,College from a resume or document ? How to export these values to other page in C#?
What is a delegate how is it type safe?
What is xpath in c#?
Can int be null c#?
Why do we need delegates?
What are mutable and immutable types in c#?
How do I move from one form to another in c#?
In c#, what will happen if you do not explicitly provide a constructor for a class?
Is there a way of specifying which block or loop to break out of when working with nested loops?
What do you mean by a windows process in regards to memory allocation?
What is a class in unity?
What is file extension of webservices?