I am going through the differences between Struts1 and Strust2 , i found out that ,
A common problem in Struts 1 is programming to abstract classes instead of interfaces.
Could anybody please let me know , Why is programming to abstract classes instead of interfaces is a problem ?
Problem?
Programming to Abstract Class is not a problem at all, it is depends how you design your object relationship.
Difference
Abstract Class provide partial implementation, which promote reuse of the code, while Interface only provide methods without any implementation in which promote encapsulation.
So When Use Abstract?
You should use abstract class when there is certain implementation uncertain to its subclass and other part of the behavior is same for all of the subclass.