+ 5

What's the difference between a class and interface?

24th Sep 2017, 7:54 AM
Yatin Nayyar
Yatin Nayyar - avatar
3 Respostas
+ 16
An interface does not have instance fields (data), so you cannot make any "object" from it... An interface is the blueprint for the methods that can be reused in many classes... ^-^
24th Sep 2017, 8:21 AM
Femyk
Femyk - avatar
+ 12
An interface only contains abstract methods.
24th Sep 2017, 7:59 AM
Hatsy Rei
Hatsy Rei - avatar
24th Sep 2017, 8:33 AM
AutomatedpROCESSES
AutomatedpROCESSES - avatar