- 1

When is this keyword used

use of this keyword

19th Jun 2017, 6:21 AM
R Prathibha
R Prathibha - avatar
2 Respostas
+ 1
@from this https://docs.oracle.com/javase/tutorial/java/javaOO/thiskey.html "Using the this Keyword Within an instance method or a constructor, this is a reference to the current object — the object whose method or constructor is being called. You can refer to any member of the current object from within an instance method or a constructor by using this."
19th Jun 2017, 6:24 AM
Jamie Isaksen
Jamie Isaksen - avatar
0
k
19th Jun 2017, 6:27 AM
R Prathibha
R Prathibha - avatar