quick easy points! very simple question about class variables!
Posted on 2006-05-04
This is one of those little questions that bugs the hell out of me, but I always felt like I should know the answer to it without much though. I gave up being frustrated about it, so here's the question .... If I'm writing a class that is seperate from the driver, it seems that when I declare the variables outside of the constructor or any other method, I can access them without having to declare them static. If I'm working with the main class that has the driver in it, and I declare the variables in the same manner, I'm unable to access them as I normally would unless I declare them static.
Why is this?
50 points seems barely worthwhile, so I made the answer worth 100 points! :)