Hi all,

When i want to create an object from x class!!
i'm using two ways as bellow:

1-
dim a as random

a=new random //using new


MsgBox(x.Next())

2-

Dim b As System.IO.File
b.Create("c:\h.zzz")


How can i know that a class needs "new"(1) to create object or jus needs declaration(2) ??


thanx in advance