+ 9

What is difference between interface and implementation ?

27th Mar 2017, 6:40 AM
Amar Dahake
2 ответов
+ 4
a Interface declares the methods and fields and if a class implements that interace it must have all methods and fields of that interface.
27th Mar 2017, 6:48 AM
T0nd3
+ 3
interface is the one which contains oly the abstract methods, and the class which contains methods which gives the definition to those abstract methods are implementation. interface provides 100 percent abstraction, and no constructors are allowed in interface.
29th Mar 2017, 9:10 PM
Dinesh Naik
Dinesh Naik - avatar