What is the default access specifier in c#

by chandubaba
Tags: access, default, specifier
chandubaba is offline
Jul19-08, 05:06 AM
P: 41
what is the default access specifier in c#. In college everyone says its private, but in the text book its written "When you do not specify any data member as public, protected or private the default access specifier for a class is internal."

And in one forum I read that default access specifier for class is internal but for class members is private. But again in the same forum someone says everything is private. Which is correct?
Phys.Org News Partner Science news on Phys.org
Going nuts? Turkey looks to pistachios to heat new eco-city
Space-tested fluid flow concept advances infectious disease diagnoses
SpaceX launches supplies to space station (Update)
GMontag is offline
Jul27-08, 04:55 PM
P: 1
Things declared outside of a class or struct will default to internal. Things declared inside of a class or struct will default to private.
chan_lemo is offline
Mar31-09, 10:55 PM
P: 6
C# Access Specifiers in detail



thekarun is offline
Jan29-10, 09:30 PM
P: 1

What is the default access specifier in c#

refer to this http://msdn.microsoft.com/en-us/libr...8VS.80%29.aspx

Top-level types, which are not nested into other types, can only have internal or public accessibility. The default accessibility for these types is internal.

Register to reply

Related Discussions
How to change the default program IE uses Computing & Technology 4
default fonts in firefox Computing & Technology 5
Default probabilities Set Theory, Logic, Probability, Statistics 0
WinXP Default Folders.. Computing & Technology 2