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
Is clr a compiler?
Is and as keyword in c# net?
How to handle exceptions that are raised in a component?
What is a bool in c#?
How does c# generics and c++ templates compare?
What is inheritance c#?
What is Covariance and contravariance in C#?
What is the difference between an integer and int?
What is the difference between “dispose” and “finalize” variables in c#?
Which string method is used for concatenation of two strings in c#?
What is exe in c#?
What is routing in c#?
What do u mean by thread safe?
What are console applications used for?
what is the difference between the debug class and trace class?