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 use of FormBoarderStyle Propertie
What is a streamwriter in c#?
What is .dbml file?
How do I make a dll in c#?
What is Private Constructor? and it’s use? Can you create instance of a class which has Private Constructor?
what is inheritance and an example in vb.net and c# of when you might use it?
Is namespace necessary in c#?
Is a decimal an integer?
What is parseexact c#?
Can dictionary have duplicate keys c#?
Explain the role of Garbage collector and its generations?
Define MSIL, and how does it works? Why our developers need an appreciation of it if at all?
Can you prevent a class from being instantiated?
Name some string escape sequences in c#.
Are tuples mutable c#?