What is difference between implements and extends 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  What is TCH availability?

Leave a Reply

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