- 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 ответ
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