What are the access-specifiers available in c#?
Answer Posted / susanta sahoo
private-accessible with in the class.
protected-accessible with in the class and its child class only in the same project.
internal-access to its child and non child class with in a project.
protected internal-accessible to its child & non child within
the same project(internal inside the project) & accessible to its child class only when a reference is made(protected outside project).
public -accessible to any object.
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is the difference between abstraction and encapsulation in c#?
Why do we need events in c#?
Explain circular reference in c#?
Which class comes after the SortedList class?
Is comparable a functional interface?
Explain the different types of delegates used in c#.
What is the difference between firstordefault and singleordefault?
What are c# i/o classes?
What are the different types of assemblies available and their purpose?
What is ienumerator c#?
Is string primitive?
Which is better interface or abstract class in c#?
Describe the types of comments in c#?
If you define a user defined data type by using the struct keyword, is it a value type or reference type?
What is a int in c#?