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 a structure in c#
Is friend a constructor?
What is the difference between a private assembly and a shared assembly?
What is c# best for?
What is executereader in c#?
code for arranging given number in possible permutation ways ex:123,321,312,132,231,213.
What is the difference between and xml documentation tag?
What is the keyword used to prevent a class from being inherited by another class?
What is the difference between an integer and int?
How is a loop recorder monitored?
What is the difference between “dispose” and “finalize” variables in c#?
What is the difference between first and firstordefault?
Why dataset is used in c#?
Do extension methods have to be static?
What is get set in c#?