Can we replace interface with abstract class?

If an abstract class contains only abstract method declarations, it should be declared as an interface instead . Multiple interfaces can be implemented by classes anywhere in the class hierarchy, whether or not they are related to one another in any way.

Sizin İçin Seçtik  What is abstract class in Java explain with example?

Leave a Reply

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