Plis help i dont get this code | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Plis help i dont get this code

When i remove the "this" keyword the output is different. Why is it different https://code.sololearn.com/ct5bBJyKrinX/?ref=app

26th May 2020, 8:34 AM
stephen haokip
stephen haokip - avatar
3 Respostas
+ 4
The keyword this refers to an attribute of a particular object. Without it, you refer to local attribute: https://www.sololearn.com/learn/Java/2154/ EDIT: Thanks, ~ swim ~
26th May 2020, 8:37 AM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
0
Thank you kuba
26th May 2020, 8:38 AM
stephen haokip
stephen haokip - avatar
0
Thank you
26th May 2020, 8:51 AM
stephen haokip
stephen haokip - avatar