Guys, help me with extends and implements | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Guys, help me with extends and implements

Hi, guys. Could you explain me what is the difference between extends and implements?!Maybe some examples, if you can

21st Sep 2018, 8:10 AM
ITknowledge
ITknowledge - avatar
2 Answers
+ 1
ecause a class can implement multiple interfaces but extend only one class. ... Difference: implements means you are using the elements of a Java Interface in your class. extends means that you are creating a subclass of the base class you are extending more details you visit this website https://stackoverflow.com/questions/10839131/implements-vs-extends-when-to-use-whats-the-difference https://data-flair.training/blogs/java-extends-vs-implements/ https://javarevisited.blogspot.com/2017/01/difference-between-extends-and-implements-keywords-in-java.html https://techdifferences.com/difference-between-extends-and-implements-keywords-in-java.html
21st Sep 2018, 9:11 AM
deepak sharma
deepak sharma - avatar
0
thanks guys. good answers all
21st Sep 2018, 11:12 AM
ITknowledge
ITknowledge - avatar