+ 2

Difference between class & interface?

12th Jan 2016, 6:26 PM
Abdul Rauf
Abdul Rauf - avatar
4 Réponses
+ 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.
23rd Apr 2016, 2:27 AM
Chris
Chris - avatar
0
Interfaces are abstract classes basically. Interfaces are classes that only contain abstract methods.
21st Jan 2016, 3:31 AM
Christopher Ballenger
Christopher Ballenger - avatar
0
a class is a model for similar objects, an interface is a model for similar behaviours of derived classes
1st May 2016, 6:44 AM
Francesco Spadavecchia
Francesco Spadavecchia - avatar
0
it is also solution for multiple inherit in java
5th May 2016, 6:32 PM
Esdras Antero
Esdras Antero - avatar