Static Methods
A static method does not operate in the context of a particular instance. Instance variables of the class cannot be accessed from the body of a static method (nor instance methods invoked).
- Unless an explicit object prefix is given—accessibility rules aside, this is no different from using these members from outside the class altogether.
The keyword this cannot be used in the body of a static method.
To invoke a static method from outside a class of which it is a member, it should be prefixed by the name of the class (similar rule to accessing class variables).