What is the use of extends?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is the use of extends??

30th Aug 2018, 4:36 PM
AKELLA TARUN SAI LAKSHMI NARAYANA SARMA
AKELLA TARUN SAI LAKSHMI NARAYANA SARMA - avatar
3 Answers
+ 4
In java extends is used for inheritance. You should have a look on java tutorial because its a little bit complicated. Please always give as most information as possible. (like on which language)
30th Aug 2018, 7:47 PM
Daniele Bonomi
Daniele Bonomi - avatar
+ 3
Edited thank you man appreciated
30th Aug 2018, 8:42 PM
Daniele Bonomi
Daniele Bonomi - avatar
+ 2
Daniele Bonomi in C#, you just use "Class2 : Class1" for inheritance
30th Aug 2018, 8:27 PM
hinanawi
hinanawi - avatar