Can an interface inherit an abstract class?Please explain me with reasons. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

Can an interface inherit an abstract class?Please explain me with reasons.

.

9th Feb 2018, 5:23 PM
Vaibhav Tandon
Vaibhav Tandon - avatar
3 Answers
+ 1
Java interfaces cannot extend classes because classes contain implementation details that cannot be specified within an interface.
11th Feb 2018, 2:00 AM
Sudhanshu
Sudhanshu - avatar
0
In Java, by definition: An abstract class is a class that is declared abstract—it may or may not include abstract methods. Abstract classes cannot be instantiated, but they can be subclassed. https://docs.oracle.com/javase/tutorial/java/IandI/abstract.html
9th Feb 2018, 5:34 PM
Rachid Antunes
Rachid Antunes - avatar
0
no inheritance of abstract clas. is not alowed in interface
19th Feb 2018, 4:39 AM
julakanti saikumar
julakanti saikumar - avatar