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

What is the difference between inheritance and Super keyword in java??

22nd Apr 2019, 2:44 PM
Soumya Halder
Soumya Halder - avatar
3 Answers
+ 3
You can not compare inheritance with the keyword super. This keyword is part of inheritance. For example your parent class and your child class have the same methods you can use super to call the method from the parent class. Here is an explanation of super: https://www.google.de/amp/s/www.geeksforgeeks.org/super-keyword/amp/
22nd Apr 2019, 7:42 PM
Denise Roßberg
Denise Roßberg - avatar
+ 2
Soumya Halder Your welcome :)
24th Apr 2019, 9:26 PM
Denise Roßberg
Denise Roßberg - avatar
+ 1
Thanks
24th Apr 2019, 2:23 AM
Soumya Halder
Soumya Halder - avatar