Hey,
Is there a difference between the following two declarations?
dim a as new someclass
dim a as someclass = new someclass
Thanks,
Printable View
Hey,
Is there a difference between the following two declarations?
dim a as new someclass
dim a as someclass = new someclass
Thanks,
Check out this thread from a couple days ago..
http://www.vbforums.com/showthread.php?t=365160
The shorter version is just laziness. And it makes Inheritance less usable.
For example
...lets you take advantage of inheritanceVB Code:
Dim img as Image = new Bitmap
whereas:
...does not. (well its not as black and white as that really but its worth considering)VB Code:
Dim img as new Bitmap