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 are the methods in c#?
What all details the assembly manifest will contain?
Can I call a virtual method from a constructor/destructor?
What are extensions in c#?
Why are local variables stored in stack?
What are the generation of Garbage Collection in C# .NET ?
Are private members inherited in c#?
Why References are stored on heap and variables on stack?
Explain the ways to deploy an assembly?
What is form feed in c#?
What is yield in c#?
Explain the difference between “constant” and “read-only” variables used in c#?
What is data binding c#?
What are bitwise logical operators?
What is polymorphism c# example?