What is an interface and what is an abstract class?
Please, expand by examples of using both. Explain why.
In a interface class, all methods are abstract without execution where as in an abstract class some methods we can explain concrete. In interface, no accessibility modifiers are allowed.
An abstract class may have accessibility modifiers. Interface and abstract class are basically a set of rules which u have to follow in case you are using them (inheriting them).