Possible Duplicate:
Need for Abstract Class as well as Interface?
why do we need interface when we have abstract class ?
Answer : The only purpose for having interface is to achieve Multiple inheritance
Correct me if i am wrong
Possible Duplicate:
Need for Abstract Class as well as Interface?
why do we need interface when we have abstract class ?
Answer : The only purpose for having interface is to achieve Multiple inheritance
Correct me if i am wrong
Favour implements over extends.
Implementing an interface is more flexible that extending an abstract class. You can only extend a single class but you can implement many interfaces.
There's lots of similar questions here on SO.
Why is programming to abstract classes instead of interfaces wrong?
I've answered here on the pros and cons of each, you might want to check it out.