Explain the differences between abstract classes and interfaces?

S.no Abstract Class Interfaces
1. Abstract classes cannot be implemented. The Interfaces needs to be implemented.
2. They are models which can have some methods to be used by all the inherited children. It is a contract, where the receiver is asking a specific type of input and sender agrees to send it that way.
3. Abstract classes can have private methods. Interfaces can not have private methods. All the plans are public.

Suggest An Answer

No suggestions avaliable!

Latest post from Full stack developer interview questions

Ask Question