What is the difference between abstract class and interface Java?

Abstract class can inherit another class using extends keyword and implement an interface. Interface can inherit only an inteface . Abstract class can be inherited using extends keyword. Interface can only be implemented using implements keyword.26 Kas 2019

Sizin İçin Seçtik  What is nested and inner class in Java with example?

Leave a Reply

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