Thread Closed

What is the default access specifier in c#

 
Share Thread Thread Tools
Jul19-08, 05:06 AM   #1
 

What is the default access specifier in c#


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?
 
PhysOrg.com
PhysOrg
science news on PhysOrg.com

>> 'Whodunnit' of Irish potato famine solved
>> The mammoth's lament: Study shows how cosmic impact sparked devastating climate change
>> Curiosity Mars rover drills second rock target
Jul27-08, 04:55 PM   #2
 
Things declared outside of a class or struct will default to internal. Things declared inside of a class or struct will default to private.
 
Mar31-09, 10:55 PM   #3
 
C# Access Specifiers in detail

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

chan.
 
Jan29-10, 09:30 PM   #4
 

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.
 
Thread Closed
Thread Tools


Similar Threads for: What is the default access specifier in c#
Thread Forum Replies
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
TechRepublic's Quick Reference: Microsoft Access Pak helps you understand Access features Computing & Technology 0