What are the access-specifiers available in c#?
Answer Posted / faiyazul islam
public - allow to access member functions and member
variable of a class from other class that can be inside or
outside of namespace collection.
private - only allow to access member functions and member
variable of a class within the same class.
protected- allow to access member functions and member
variable of a class from within same class and child classes
that can be inside or outside the namespace collection.
internal - allow to access member functions and member
variable of a class from within same class and class within
the inside namespace collection.
internal protected - allow to access member functions and
member variable of a class from within same class and and
child class within the inside namespace.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is a Jagged Array in C#?
What is returned if you pass the value 12.34 to the parsefloat () function?
When was .net linq added?
Does c# support multiple class inheritance?
What is Reflection in .NET? Namespace? How will you load an assembly which is not referenced by current assembly?
What is int32 maxvalue?
What is threading in c# with example?
Explain the difference between the debug class and trace class?
What is anonymous methods in c#?
How to create multi-dimensional array?
What is nameof c#?
What is the use of 'as' Keyword in C# ?
How do I create a multilanguage, single-file assembly?
What is exe file in c#?
What is call back method?