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 global namespace in c#?
What are the different ways of method can be overloaded?
Why do we use 0?
What is difference between private and static constructor?
What is an inheritance ?Give an example in which inheritance is used?
Can we set image Source dynamically using C# in WPF application?
How to Install uninstall assemblies into GAC?
What is the delegate in c#?
What is scaffolding in c#?
Please explain value types and reference types used in c#?
What is the namespace for datatable in c#?
What is the purpose of abstract class in c#?
What is the use of console application in c#?
Can arraylist hold primitive types?
Explain About delegates