+ 2
can i call a method using this keyword for example:this.results(); if not how to call an method in another method?
3 Answers
0
no
0
why u need this just write method name like :
results ();
0
To call a method in the same class, simply use the method name like so: "method();" (without the quotes). If, however, it is in a different class, you call it using the class name and the method name, like so: "Class.method();" (again, without the quotes).