What are access modifiers in c#?



What are access modifiers in c#?..

Answer / Shiv Shakti Shankar

Access modifiers in C# determine the visibility and accessibility of a class, method, property or variable. The four common access modifiers are: private (visible within the containing type), internal (visible within the assembly), protected (visible within the containing type and derived types), public (visible to all parts of the application)

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What is token in c#?

1 Answers  


What is the different types of private assembly and shared assembly?

1 Answers  


What is the difference between “finalize” and “finally” methods in c#?

1 Answers  


What are the boolean data types in c#?

1 Answers  


Can a static class contain non static members?

1 Answers  


What is the difference between method overriding and method overloading?

1 Answers  


What is the delegates in c#?

1 Answers  


how can i return string by vilating duplicates(inpyt like asdfsda but output should be 2a2d2sf and 2a,2d,2s,f)

2 Answers   Microsoft,


What are accessors?

1 Answers  


What do you mean by hashtable c#?

1 Answers  


How do you implement thread synchronization (object.wait, notify,and criticalsection) in c#?

1 Answers  


what is class libraries?

1 Answers  


Categories