Difference between super and this keyword


Difference between super and this keyword


Distinguish, differentiate, compare and explain what is the Difference between super and this keyword. Comparison and Differences.

Difference between super and this keyword

1. Super represents current instance of parent class whereas this represents current instance of the class.

2. Super is used to call constructor of parent class whereas this is used to call constructor of same class.

3. Super and this are non static keyword.




Tags:

Difference between this keyword vs super

super vs this keyword

Differences between this keyword vs super

Spreading Knowledge Across the World

USA - United States of America  Canada  United Kingdom  Australia  New Zealand  South America  Brazil  Portugal  Netherland  South Africa  Ethiopia  Zambia  Singapore  Malaysia  India  China  UAE - Saudi Arabia  Qatar  Oman  Kuwait  Bahrain  Dubai  Israil  England  Scotland  Norway  Ireland  Denmark  France  Spain  Poland  and  many more....