Register to reply

What is the default access specifier in c#

by chandubaba
Tags: access, default, specifier
Share this thread:
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
Experts defend operational earthquake forecasting, counter critiques
EU urged to convert TV frequencies to mobile broadband
Sierra Nevada freshwater runoff could drop 26 percent by 2100
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.
Mar31-09, 10:55 PM
P: 6
C# Access Specifiers in detail


Jan29-10, 09:30 PM
P: 1
What is the default access specifier in c#

refer to this

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