What are the access allowed for compilation
units(namespace),class and structs and what are its default
access?



What are the access allowed for compilation units(namespace),class and structs and what are its def..

Answer / basavaraju.c

Namespace : It is not possible to use any access specifiers
like private, public etc with a namespace declarations. The
namespaces in C# are implicitly have public access and this is
not modifiable.

For Class and Structs we can only use internal and public.
(default access is Internal)

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What is Satellite Assemblies ?

0 Answers   MCN Solutions,


What is property c#?

0 Answers  


What is the purpose of namespace?

0 Answers  


Why are dynamic link library used over static one?

0 Answers   C DAC,


Is enum a class c#?

0 Answers  






What is the difference between abstract and abstraction?

0 Answers  


What is delegates and events?

0 Answers  


Can an interface extend a class c#?

0 Answers  


What is the use of partial methods?

0 Answers  


Why is it a bad idea to throw your own exceptions?

1 Answers   Visual Soft,


what is garbage collection?

8 Answers   Protech,


What statements can enclose a "continue" statement?

3 Answers   Fortech,


Categories