Any thoughts about the differences between interface and abstract class? | SoloLearn: Learn to code for FREE!

0

Any thoughts about the differences between interface and abstract class?

I just wonder the main difference between both and i still couldnt figure it out by myself

5/5/2019 11:10:44 AM

REXH

2 Answers

New Answer

+3

https://www.javatpoint.com/difference-between-abstract-class-and-interface

+5

Another difference which is not mentioned in the article is that: Abstract class can be extended, which means it can have child class but it's necessary that child class must have a definition of abstract method present in the parent class. While on the other hand, interfaces cannot be extended which means that they don't have child classes. Interfaces are implemented by some classes.