Being self taught, this is one thing I've always had trouble with -- I
finally get it straight in one situation and I find I'm not sure about
another.
I have a class that keeps calling an internal method. If I define variables
within the method, I would expect that they're new and clean each time I
call the method. If I'm calling from within the class, is that true? Or
should I re-initialize the variables each time the method is called? Could
someone clarify this for me?
Thanks!
Hal
finally get it straight in one situation and I find I'm not sure about
another.
I have a class that keeps calling an internal method. If I define variables
within the method, I would expect that they're new and clean each time I
call the method. If I'm calling from within the class, is that true? Or
should I re-initialize the variables each time the method is called? Could
someone clarify this for me?
Thanks!
Hal
Comment