A
Aaron Irizarry
When should I use static variables and when should I use instance variables?
I'm working on a class X and initially (for some reason I yet do not know),
I declared some variables static but the methods weren't. So I'd initialize
fill the variables statically and then I'd create an instance of X to work
on those static variables. Is there some reason why I should declare them
static?
Thanks.
I'm working on a class X and initially (for some reason I yet do not know),
I declared some variables static but the methods weren't. So I'd initialize
fill the variables statically and then I'd create an instance of X to work
on those static variables. Is there some reason why I should declare them
static?
Thanks.