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

List down the access modifiers available in c#?

0 Answers  


Explain manifest & metadata?

5 Answers   IBM, Wipro,


Did it possible to cast a generic type of derived class to generic type of base class?

2 Answers   TCS,


What is func c#?

0 Answers  


Use of Checked and UnChecked operators?

2 Answers   TCS,






What is the Difference between imperative and interrogative code?

2 Answers   Wipro,


Define an assembly in .net?

0 Answers  


What is the c# equivalent of c++ catch (…), which was a catch-all statement for any possible exception? Does c# support try-catch-finally blocks?

0 Answers  


What is helper method in c#?

0 Answers  


What is wpf c#?

0 Answers  


What is the difference between namespace and class?

0 Answers  


Can you create sealed abstract class in c#?

0 Answers  


Categories