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 lazy in c#?
What is an array class?
What is meant by generics in c#?
What do you mean by default constructor?
Why to use lock statement in c#?
What is the components of window?
Write a C# program to find the Factorial of n
How do I use the 'using' keyword with multiple objects?
Explain partial class in c#?
Explain the use of virtual, sealed, override, and abstract method?
What is autopostback in c#?
What is the difference between field and property in c#?
What is xaml in c#?
Is c sharp and c# are same?
What is a multicast delegate in c#?