can u explain me clearly when to use an interface and an abstract class.........
is it a design decision or they can be used interchangeably in java.......
its all depend upon your requirement
eg) In the above sample i used interface since i don't care about what is the actual class that implement, in this case i don't need a abstract class
eg) if you think object behave in maximum similar way and differ a little then go for abstract class