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 |
Difference between multi-level and multiple inheritance?
What is parameter c#?
What does the parameter Initial Catalog define inside Connection String?
public void A() { int x; x = 8; x *= 4 + 8 / 2; } Given the above code, what is the value of "x"?
What is c# console application?
What are extension methods and where can we use them?
What is a thread c#?
What is boxing? Explain its functionality?
Where do we use serialization in c#?
What are data types examples?
What is an assembly in .net?
Where do we set the min and max pool size for connection pooling?
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)