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

How many types of polymorphism are there?

0 Answers  


What is tryparse c#?

0 Answers  


What are the types of inheritance in c#?

0 Answers  


what will be the output of the given below coding. using System; public class Exercise { static void OddNumbers(int a) { if (a >= 1) { Console.Write("{0}, ", a); a -= 2; OddNumbers(a); } } public static int Main() { const int Number = 9; Console.WriteLine("Odd Numbers"); OddNumbers(Number); Console.WriteLine(); return 0; } }

1 Answers   iGate,


Is string reference type / value type?

56 Answers   Accenture, Microsoft, Siemens,






What is difference between int and int in c#?

0 Answers  


how to sort an array in c#

0 Answers   Cognizant,


In dynamic link library, which api is used for load library?

0 Answers   C DAC,


What are controls in c#?

0 Answers  


4. Describe the process when we send a request URL? And who is responsible for that?

0 Answers   Mphasis,


explain the features of static/shared classes.

0 Answers  


Are private class-level variables inherited?

2 Answers  


Categories