List the 5 different access modifiers in c#?
Answer / Sulochana Singh
1. `public` - Accessible from anywhere
2. `protected` - Accessible within the class itself and derived classes
3. `internal` - Accessible within the assembly (DLL or EXE) only
4. `private` - Accessible only within the current class
5. `protected internal` - Accessible within the assembly and derived classes
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the difference between virtual method and abstract method?
Is it possible to force garbage collector to run?
how to cleanup object that does not support dispose method? How to implement dispose for such scenarios?
Valuetype/reference type?
What is the difference between dictionary and hashtable in c#?
What is a class c#?
Why is c# good for games?
Is the following code legal?
How can we convert XML Data to DataBase Table in C#.Net?
What is the difference between abstract class and interface in c#?
What is difference between encapsulation and abstraction in c#?
In a site to turn off cookies for one page which method is followed?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)