Difference between interface and abstract class??please read description | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

Difference between interface and abstract class??please read description

Can somebody provide a example where abstract class is used and at that place interface cannot be and vice versa??

12th Jun 2017, 10:13 AM
Bibhuti
1 Answer
0
Abstract classes can have attributes and normal methods which interfaces can not (until Java 8.....) while a class can implement multiple interfaces and extend only one class.
12th Jun 2017, 10:23 AM
merkrafter