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 hierarchical inheritance in c#?
What is monitor in C#?
What is array c#?
What is the difference between namespace and class?
What is deferred execution in c#?
Can you inherit multiple abstract classes in c#?
What is meant by unicode characters?
How do we achieve encapsulation in c#?
Which is the best language for desktop application?
What is asynccallback c#?
How do I know if executenonquery is successful c#?
Explain the difference between boxing and unboxing.
What is method in c#?
How do you create dlls in .NET
What is mvc in c#?