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

How do I trim a space in c#?

645


Are c# strings immutable?

682


What is local function?

730


What is application object in c#?

694


What is data adapter in c#?

642


What is multidimensional array in c#?

683


what is partial assembly reference

727


What are delegates?

993


What is exe in c#?

679


Explain types of comment in c# with examples

689


What is dependency injection in simple words?

705


How do you inherit a class into other class in c#?

680


What is the benefit of delegate in c#?

672


What is assembly c#?

656


What is the process of Serialization?

761