What is the difference between abstract class and interface? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What is the difference between abstract class and interface?

9th Dec 2017, 1:41 PM
pavithra paramesh
pavithra paramesh - avatar
1 Answer
+ 10
interface is fully abstract class, all methods in interface are abstract and interface can't have fields. Abstract class can have fields and non - abstract methods. Class can extends one class but more interfaces
9th Dec 2017, 1:46 PM
Vukan
Vukan - avatar