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 eager and lazy loading in c#?
What is the difference between structure and class in c#?
What is remote data?
What are cshtml files?
Explain dataset.acceptchanges method in .net?
How do you sort an array in c#?
What is scaffolding in c#?
What is a Assembly?
What is or operator in c#?
What is a class level variable in c#?
What is the advantage of extension method in c#?
My switch statement works differently! Why?
How to declares a two-dimensional array in C#?
What is string literal in c#?
What is semaphore in c#?