+ 2

can i call a method using this keyword for example:this.results(); if not how to call an method in another method?

10th Sep 2016, 5:23 PM
abi
3 Respuestas
0
no
10th Sep 2016, 5:37 PM
Gor
0
why u need this just write method name like : results ();
10th Sep 2016, 7:46 PM
Md Al Rasel
Md Al Rasel - avatar
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).
10th Sep 2016, 8:47 PM
PrOdIgY CaRcAsS
PrOdIgY CaRcAsS - avatar