can test.vb looks like this?

Results 1 to 2 of 2

Thread: can test.vb looks like this?

  1. #1
    Join Date
    Dec 1969

    Default can test.vb looks like this?

    I would like to know:<BR><BR>When I want to create a class, for example, test.vb, is it a must to have a Namespace? And can there be only one class instead of 2 or 3 class?<BR><BR>Can test.vb looks like that:<BR><BR>Import System<BR>Namespace testing<BR>&nbsp;Public Class test1<BR>&nbsp;&nbsp;Public Function test11()<BR>&nbsp;&nbsp;End function<BR>&nbsp;&nbsp;Public Function test12()<BR>&nbsp;&nbsp;End function<BR>&nbsp;End Class<BR><BR>&nbsp;Public Class test2<BR>&nbsp;&nbsp;Public Function test21()<BR>&nbsp;&nbsp;End function<BR>&nbsp;&nbsp;Public Function test22()<BR>&nbsp;&nbsp;End function<BR>&nbsp;End Class<BR>End Namespace

  2. #2
    Join Date
    Dec 1969

    Default RE: can test.vb looks like this?

    You do not need to specify a namespace. I do not know if you are allowed to define two classes in the same file; I would think not. It does not make sense from a design point of view.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts