What are the access-specifiers available in c#?
Answer Posted / vakil vijay vamangari
Public: With respect to the assembly the variable,methods of
public class can be access any where .
Private: This is default in c#.net.With respect to the
assembly the variable,methods of private class can be
access only with in that class only.
Protected: With respect to the assembly the variable,methods
of protected class can be access with in that class(base
class) and accessed in class which is derived from that
base class.
Internal(friend in vb.net): With respect to the assembly the
variable,methods of internal class can be access with in
that assembly not the outside of that assembly
Protected Internal: Protected + Internal
With with respect to the assembly the variable,methods
of this class can be access with in that assembly and
protected out side the assembly
| Is This Answer Correct ? | 4 Yes | 13 No |
Post New Answer View All Answers
Are c# tuples immutable?
How to do and Apply Themes to Datagrid,Lable,Textbox,etc., in C#.NET 2005 Windows Application? (like who we will do themes in ASP.NET using .CSS and .SKIN files). Urgent!!
What are escape sequences explain with example?
What is iqueryable in linq?
How do you declare a variable in c#?
What do you mean by for each loop?
When do you generally use a class over a struct?
Explain concurrency with aop?
What is instantiating a class in c#?
Is c# an array?
What is before string in c#?
What is ilasm.exe used for?
What is the advantage of extension method in c#?
What sort algorithm does c# use?
How is a loop recorder monitored?