Declaring variables

There is a difference, even though you initialize the instance inside of a sub/function that variable itself is global to the class and when initializing you are crating an instance for that variable.
 
I would say yes since the variable is there as long the class is running.

While in the second it is only declared when the sub is called and then disposed when it is done
 
Back
Top