What is the use of interface while we can achive the same thing using abstract class. If it is useful in which senario interface come handy ? please help i think this is dumb question but i need help on this
posted 6 years ago
We can't extend multiple abstract classes but we can implement multiple interfaces. So it depends on the situation/problem whether we should use abstract class or interface. Also with interface we have the option of optional operation.