Can you write a class without specifying namespace? Which namespace does it belong to by default?



Can you write a class without specifying namespace? Which namespace does it belong to by default?..

Answer / kirti

Yes, you can, then the class belongs to global namespace which has no name. For commercial products, naturally, you wouldn't want global namespace.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Dot Net Framework Interview Questions

What does 'managed' mean in the .NET context

1 Answers  


What are html helpers in asp.net mvc?

0 Answers  


what is view state

3 Answers   Wipro,


give the feature of .net2.0 over .net1.1

6 Answers  


I have 2+ years of fake experience,actually i could not answer for project questions..?how can i answer please suggest me..?

0 Answers   Accenture,


What are the methods in Thread class?

3 Answers  


what is MetadData?. What is CTS? Type of Join in SQL Server? What is diffrence between Primary Key and Unique Key?

7 Answers   FutureSoft,


Explain the advantage of packaging over xcopy in .net?

0 Answers  


What data type should you use if you want an 8-bit value that's signed ?

1 Answers  


What is the difference between tempdata and viewbag?

0 Answers  


What are differences between entity framework and l2s? : Entity framework

0 Answers  


Explain linq to entities? : Entity framework

0 Answers  


Categories