Difference between interface and abstract class
- In the interface, if we don't know about implementation and just we have requirement specification then we should go for an interface. But In the abstract class, If we are talking about partial implementation but not complete then we should go for abstract class.
- In the interface, every method is always public and abstract whether we are declaring or not. But In the abstract class, every method need not be public and abstract. we can take concrete method also.