What is the difference between extends and implements in Java?

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 . You can only extend one class in your child class, but you can implement as many interfaces as you would like.

Sizin İçin Seçtik  151 hesap nasıl çalışır?

Leave a Reply

Your email address will not be published. Required fields are marked *