Register to reply

What is the default access specifier in c#

by chandubaba
Tags: access, default, specifier
Share this thread:
chandubaba
#1
Jul19-08, 05:06 AM
P: 41
Hello,
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
Security CTO to detail Android Fake ID flaw at Black Hat
Huge waves measured for first time in Arctic Ocean
Mysterious molecules in space
GMontag
#2
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
#3
Mar31-09, 10:55 PM
P: 6
C# Access Specifiers in detail

http://csharp.net-informations.com/l...specifiers.htm

chan.

thekarun
#4
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