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


Please Help Members By Posting Answers For Below Questions

What is the difference between abstraction and encapsulation in c#?

499


Why do we need events in c#?

547


Explain circular reference in c#?

550


Which class comes after the SortedList class?

570


Is comparable a functional interface?

507






Explain the different types of delegates used in c#.

514


What is the difference between firstordefault and singleordefault?

484


What are c# i/o classes?

569


What are the different types of assemblies available and their purpose?

511


What is ienumerator c#?

473


Is string primitive?

499


Which is better interface or abstract class in c#?

445


Describe the types of comments in c#?

512


If you define a user defined data type by using the struct keyword, is it a value type or reference type?

519


What is a int in c#?

462