|
-
May 18th, 2003, 02:56 PM
#1
Thread Starter
New Member
Is there any difference??
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|