+ 7

Pls can someone give me a detailed explanation on "this" as relates to java, I do not fully understand how it works

For example: button.addActionListener (this);

21st Mar 2017, 4:10 PM
David Akhihiero
David Akhihiero - avatar
1 Réponse
+ 13
"this" refers to the current object. You may follow this thread for more details : https://www.sololearn.com/Discuss/256082/?ref=app
21st Mar 2017, 4:41 PM
Shamima Yasmin
Shamima Yasmin - avatar