![]() |
difference between an Interface and an Abstract class
What is the difference between an Interface and an Abstract class?
|
Re: difference between an Interface and an Abstract class
Here are some of them
|
Re: difference between an Interface and an Abstract class
1) Abstract class defines few or none of the methods, but
interface defines all the methods.. 2) Abstract classes should have subclasses else that will be useless.. Interfaces must have implementations by other classes else that will be useless 3)only an interface can extend another interface, but any class can extend an abstract class.. 4)All variable in interfaces are final by default |
| All times are GMT +5.5. The time now is 04:27. |