Paul Anilprem wrote:
So now, there are a few things that you missed -
2. non-static method cannot access static variable of the class directly.
Hi, I'm not sure I followed that point.
You can in fact access any static members of a class inside an instance method.
You cannot do the other way, I mean, you cannot access instance methods or fields of "this" in a static context.