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
How many root nodes are there in an xml document?
What is class in oops with example in c#?
What is xamarin used for?
What is meant by generics in c#?
Why do we use abstraction in c#?
what is virtual method in c#?
Can mvc be used for desktop applications?
What are the main reasons to use c# language?
What is an iqueryable in c#?
Can I use ReaderWriterLock instead of Monitor.Enter/Exit for Threading?
Which class comes after the SortedList class?
What is default value of bool in c#?
What is difference between c sharp and c#?
Define mutex in C#?
What is field in c#?