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 interface inheritance in c#?
Can you declare a field readonly?
Which constructor is called first in c#?
How to put assembly in gac?
What is semaphore in c#?
What is xaml file in c#?
Difference between type constructor and instance constructor? What is static constructor, when it will be fired? And what is its use?
What is ienumerator c#?
Is collection a data structure?
Is it possible to restrict the scope of a field/method of a class to the classes in the same namespace?
What is oledb in c#?
Which is faster abstract class or interface in c#?
What is thread.sleep()?
If you define a user defined data type by using the struct keyword, is it a value type or reference type?
State the top.NET class that everything is derived from?