what is accessspecifier and explation each with example?
Answers were Sorted based on User's Feedback
Answer / chaithanya.a
These are also modifiers used to define scope of a type as
well as their members i.e who can access them who can't
c#supports 5 types
1.private
2.internal
3.protected
4.protected internal
5.public
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / pranoti moghe
There are basically 5 access specifiers in .net...
Public - meaning members can be accessed from anywhere..even outside the assembly...
Private - meaning members cannot be accessed outside a class..
Protected - meaning members can be accessed in that class and to the derived classes....
Protected internal
Internal
Is This Answer Correct ? | 2 Yes | 0 No |
Who benefits from ajax?
What does the dispose method do with the connection object?
Is datetime immutable c#?
Why do we need collections in c#?
What is generic types in c#?
Where is the output of TextWriterTraceListener redirected?
What?s an abstract class?
Explain copy constructor?
Is c# difficult to learn?
I want to print "Hello" even before main() is executed. How will you achieve that?
What is strongly typed in c#?
What is the difference between class and namespace?