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 an xsd file?
How do you prevent a method from being overridden in c#?
Define constructors
What is system console writeline in c#?
What is a interface in c#?
Can we inherit singleton class in c#?
What are the Configuration files in .net?
What is an ienumerable in c#?
What are the benefits of using generics in c#?
What Is The Difference Between The System.array.copyto() And System.array.clone()?
Is boxing an implicit conversion?
What does question mark mean in c#?
What are class fields?
What is expandoobject in c#?
Can I define a type that is an alias of another type (like typedef in c++)?