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
How to reverse each word in a string using c#?
What is method in c#?
What is dependency injection in simple words?
Can you call from an inherited constructor to a specific base constructor if both base class and an inheriting class has a number of overloaded constructors?
Which is faster iqueryable or ienumerable?
Explain circular reference in c#?
Why we use delegates in c#?
How we convert private assembly into public assembly?
What is the difference between asp net and c#?
What is the difference between ref & out parameters in c#?
What do u mean by delegation?
What is the difference between ienumerable and icollection?
What is tpl in c#?
Write a program in C# for checking a given number is PRIME or not.
What is option parameter in C#?