Can we use this keyword on static method

We can not use this keyword becausethispoints to an instance of the class, in the static method you don't have an instance.

thisis an instance of the current object. With a static method, there is no current object, and as such, thisdoesn't exist

results matching ""

    No results matching ""