Difference between interface and abstract:
All the methods declared inside interface should be abstract, and there is no need to use the key word 揳bstract?for those method, but in case of abstract class at least one method should be abstract, most importantly u have to use the 揳bstract?key word for that method, besides that it may contain concrete methods. Abstract class must be extended abstract () methods generally contain only declaration part without definition part.
> All the methods declared inside interface should be abstract
All the methods declared for an interface are abstract, by definition.
> but in case of abstract class at least one method should be abstract
No. An abstract class is not required to have any abstract methods. It's not even a "should".
> Abstract class must be extended abstract ()
> methods generally contain only declaration part
> without definition part.
No "generally" about it, as there are no exceptions. Abstract methods do not have a declared body, by definition.
~