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

What are the properties in c#?

0 Answers  


What is the signature of a method?

0 Answers  


What is an abstract class c#?

0 Answers  


What is binary search tree in data structure?

0 Answers  


What is garbage collector and where should you use in .NET?

0 Answers   Siebel,


What is a console in c#?

0 Answers  


What are lambda expressions used for?

1 Answers  


What is service contract

2 Answers   Synechron,


What are the different states of a thread?

0 Answers  


Classes and structs can be declared as static, is this statement true or false?

0 Answers  


Define a strong name in .net?

0 Answers  


What is the difference between webgarden and webfarm?

1 Answers   Mphasis,


Categories