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  How can we convert one class object to another class in Java?

Leave a Reply

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