what is accessspecifier and explation each with example?

Answers were Sorted based on User's Feedback



what is accessspecifier and explation each with example?..

Answer / chaithanya.a

These are also modifiers used to define scope of a type as
well as their members i.e who can access them who can't
c#supports 5 types
1.private
2.internal
3.protected
4.protected internal
5.public

Is This Answer Correct ?    3 Yes 0 No

what is accessspecifier and explation each with example?..

Answer / pranoti moghe

There are basically 5 access specifiers in .net...
Public - meaning members can be accessed from anywhere..even outside the assembly...
Private - meaning members cannot be accessed outside a class..
Protected - meaning members can be accessed in that class and to the derived classes....
Protected internal
Internal

Is This Answer Correct ?    2 Yes 0 No

what is accessspecifier and explation each with example?..

Answer / ssss

Access specifiers are private,public etc....

Is This Answer Correct ?    3 Yes 2 No

Post New Answer

More C Sharp Interview Questions

Who benefits from ajax?

0 Answers  


What does the dispose method do with the connection object?

0 Answers  


Is datetime immutable c#?

0 Answers  


Why do we need collections in c#?

0 Answers  


What is generic types in c#?

0 Answers  






Where is the output of TextWriterTraceListener redirected?

1 Answers  


What?s an abstract class?

4 Answers   NIIT,


Explain copy constructor?

0 Answers   Accenture,


Is c# difficult to learn?

0 Answers  


I want to print "Hello" even before main() is executed. How will you achieve that?

0 Answers   DELL,


What is strongly typed in c#?

0 Answers  


What is the difference between class and namespace?

0 Answers  


Categories