What is difference between this and super keyword? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is difference between this and super keyword?

19th Feb 2017, 9:46 AM
Vishal Sahu
Vishal Sahu - avatar
2 Answers
+ 18
this -> refers to the current object, super -> refers to the superclass of current class.
19th Feb 2017, 9:47 AM
Valen.H. ~
Valen.H. ~ - avatar
0
thanks
19th Feb 2017, 9:48 AM
Vishal Sahu
Vishal Sahu - avatar