This may be a generic OOP question. I wanted to do a generic comparison between an interface and an abstract class on the basis of their usage.
When wou
1.If you are creating something that provides common functionality to unrelated classes, use an interface.
2.If you are creating something for objects that are closely related in a hierarchy, use an abstract class.