|
|||
|
Hi I have a java question,
What is the difference between an Interface and an Abstract class?
__________________
Wheel Hub bearing |
|
|||
|
There is no difference in the functionality of these two.The only difference is that a class cannot extend an abstract class if it is already extending some other class. An interface on the other hand can be implemented in any situation which makes them very powerful. Also user defined exceptions can be defined within an interface itself which is not the case with anabstract class.
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|