between types of classes, and also easier to apply polymorphism
In addition to the ones you mentioned, abstract classes cannot be also passed to another method as lambda expressions
Interfaces are just service requirement specification. For example let's take an example of ATM, on the ATM screen you see services like (check balance, withdraw etc) these are the service provided by bank and at other end what services you are expecting. Simply we can say interfaces are agreement between two parties what services they are providing and what services client is 3xpecting.
Обсуждают сегодня