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
Explain hash table in c# ?
How do you achieve polymorphism in c#?
Explain About Postback
What is the main method in c#?
Explain anonymous type in c#?
What are the advantages of using c#?
How will you allow a class to be inherited, but prevent the method from being over-ridden?
What is integer c#?
Is string mutable in c#?
Does a class need a constructor c#?
what is a constructor? What is a destructor?
Explain concurrency with aop?
Explain dataadapter.update method in .net?
Why delegates are required?
What does int32 mean in c#?