+ 2
Difference between class & interface?
4 Answers
+ 4
An interface is a contract. Any class that implements the interface must implement all the methods defined in the interface or else the contract is broken.
0
Interfaces are abstract classes basically. Interfaces are classes that only contain abstract methods.
0
a class is a model for similar objects, an interface is a model for similar behaviours of derived classes
0
it is also solution for multiple inherit in java