+ 9
What is difference between interface and implementation ?
2 Réponses
+ 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.
+ 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.