As class is doing the same thing of interface,why we need interface?
Printable View
As class is doing the same thing of interface,why we need interface?
to provide a common "interface". (I.E. so that one class can utilise specific parts of many other classes without knowing more of that class than it absolutely must. I.E. no more than is defined in the interface that they all implement).