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 are the Different kinds of methods?

4 Answers   Wipro,


explain DIFFERENCE BETWEEN CLASS AND MODULE?

3 Answers  


How To Maintain Transaction In C#?

1 Answers   Phoenix Technologies,


What will a loop recorder show?

0 Answers  


What is dao in c#?

0 Answers  


how to sort an array in c#

0 Answers   Cognizant,


What is wpf c#?

0 Answers  


Is there hashmap in c#?

0 Answers  


Why generics are used in c#?

0 Answers  


what is the difference between the debug class and trace class?

0 Answers   Rolta,


What is parameterized constructor?

0 Answers  


What is the use of nullable types in c#?

0 Answers  


Categories