what is accessspecifier and explation each with example?
Answers were Sorted based on User's Feedback
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 |
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 |
How many types of polymorphism are there?
What is tryparse c#?
What are the types of inheritance in c#?
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; } }
Is string reference type / value type?
56 Answers Accenture, Microsoft, Siemens,
What is difference between int and int in c#?
how to sort an array in c#
In dynamic link library, which api is used for load library?
What are controls in c#?
4. Describe the process when we send a request URL? And who is responsible for that?
explain the features of static/shared classes.
Are private class-level variables inherited?