Interfaces Flashcards

1
Q

What are the differences between interface and inheritance?

A

We can multiple inherit from Interfaces.

Class implement interfaces and they don’t inherit from interfaces. That means that classes have to implement all the methods of interfaces.

Interfaces are used to build loosely coupled and testable applications.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly