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

What is the difference between C# 3.5 and C# 4.0?

534


What is the advantage of constructor?

474


What does assert() do in c#?

544


how to Create a datagridview control with check box column with 8rows in it, the maximum number of check boxes checked should be 3, when user checks the 4th corresponding message should be displayed and check box should be checked. User can uncheck the checked boxes Note: read-only property should not be used

2393


What is get set in c#?

557






Name some string escape sequences in c#.

566


What does == mean in c sharp?

510


What is for loop in c#?

501


Can constructor have return type c#?

634


Explain Direct CAST vs CType ?

552


How many types of serialization are there in c#?

453


What is a thread? What is multithreading?

500


When is a class declared as a class abstract?

581


What do you mean by jagged arrays in c#?

476


What is type cast in C#?

563