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
Differentiate between sqlclient oledb and providers?
What are the namespace level elements?
Can a class or a struct have multiple constructors?
Why singleton pattern is used in c#?
What are the 4 pillars of any object oriented programming language?
Can we inherit a class with private constructor in c#?
Can constructor be private c#?
What is code verification?
Why singleton class is sealed?
How do you pronounce c#?
What is the difference between yield and return?
What is the solution if you need to manipulate sets of items?
What is the difference between continue and break statement?
Can we override constructor in c#?
What is asynchronous one-way calls?