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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a model in android?

495


How do I install .net framework?

528


What is conceptual model? : Entity framework

531


What is the advantage of mvc?

619


What is Layout in ASP.Net MVC?

577






What is the use of viewmodel in mvc?

618


explain what is ado.net entity framework?

573


What is the full form of sp?

497


What are Scaffold templates in ASP.Net MVC?

575


What are the components required to create a route in ASP.Net MVC?

587


how do you query in entity model when the result has a join from from different database other than the entity model?

558


What is the difference between tempdata and viewbag?

499


When using aspx view engine, to have a consistent look and feel, across all pages of the application, we can make use of asp.net master pages. What is asp.net master pages equivalent, when using razor views?

554


Explain the advantages and disadvantages of ASP.Net MVC over ASP.NET?

541


Can you use Razor code in Javascript in ASP.Net MVC?

665