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

Explain something about model, view and controllers in asp.net mvc?

0 Answers  


What is the difference between the value-type variables and reference-type variables in terms of garbage collection ?

1 Answers  


Explain the methods used to render the views in ASP.Net MVC?

0 Answers  


What is the role of the jit compiler in .net framework?

0 Answers  


Why to use “{resource}.axd/{*pathinfo}” in routing in mvc?

0 Answers  






What is .net framework & its benefits?

0 Answers  


What are the contents of assembly?

2 Answers  


What are the differences between Partial View and Display Template and Edit Templates in ASP.Net MVC?

0 Answers  


what is way of loading data in ef (entity framework)?

0 Answers   Microsoft,


What is serialization in .NET? What are the ways to control serialization?

2 Answers  


What is the difference between using system.net and system.net.sockets?

1 Answers  


What is entitytypes? : Entity framework

0 Answers  


Categories