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 an icollection in c#?
What is sqldataadapter in c#?
What is a hash table c#?
Explain About disco and uddi
How do you declare an interface in c#?
Difference between Value type & reference types ? and give the example in .Net?
Define using statement in c#?
What is a string in c#?
How can I make sure my c# classes will interoperate with other .net languages?
What is data hiding in c#?
how background thread access to ui control?
How does split work in c#?
What are sorted lists?
Can an exception be thrown from a catch block?
What are anonymous functions in c#?