+ 1
What exactly does the 'this' keyword in programming do?
5 Respuestas
+ 3
this keyword refers to current class/object.
btw. you tagged python, python has no "this" word, its equivalent is "self".
+ 3
"this" refers to the current object you're manipulating.
+ 1
@Jakub Stasiak "self" is only a convention, you can call it "this" if you want.
+ 1
I think I get it now...thanks
0
@clement Yes it is, but you when we speak about keywords there is not such keyword in Python. That is why I pointed it out.