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 double a decimal?
How is a strongly-named assembly different from one that isn’t strongly-named?
Are there constructors in c sharp?
Can we override interface methods in c#?
What is deferred execution in c#?
What is selector c#?
Which program construct must return a value?
What is a delegate? Explain.
What is master page in asp net c#?
What is using directive in c#?
What is the difference between dynamic type variables and object type variables in c#?
What is default access specifier for class in c#?
Why do we use polymorphism in c#?
What is class sortedlist underneath?
What are strong name assemblies?