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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between hashtable and dictionary in c#?

475


Can we declare private class in c#?

479


What is the data encapsulation?

485


What is Asynchronous call and how it can be implemented using delegates?

572


Which of these string definitions will prevent escaping on backslashes in c#?

567






Can we override constructor in c#?

502


What is action in c# 3.5?

536


What is the difference between paramaterized constructor and copy constructor?

505


Is .net and c# the same?

554


What is selector c#?

507


What is visual c# net?

489


Explain async and await?

531


What is xor operation?

523


Difference between debug.write and trace.write?

519


Can a constructor have a return type?

499