+ 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
3 Respostas
+ 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
0
thanks guys. good answers all