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
What is the difference between hashtable and dictionary in c#?
Can we declare private class in c#?
What is the data encapsulation?
What is Asynchronous call and how it can be implemented using delegates?
Which of these string definitions will prevent escaping on backslashes in c#?
Can we override constructor in c#?
What is action in c# 3.5?
What is the difference between paramaterized constructor and copy constructor?
Is .net and c# the same?
What is selector c#?
What is visual c# net?
Explain async and await?
What is xor operation?
Difference between debug.write and trace.write?
Can a constructor have a return type?