Start networking and exchanging professional insights

Register now or log in to join your professional community.

Deleted user
by Deleted user

an interface is a group of related methods with empty bodies

Interface is similar to class.but they lack instance variable ,and the methods are declared without body inside interface.

sreerag arimbrathodiyil
by sreerag arimbrathodiyil , Software Developer , SystechInfovations

interface is collection of abstactmethods and final variables,

it is used insted of multiple inheritance

we cant create object for interface

Zubair Ali
by Zubair Ali , Software Developer III , S&P Global

  • InterfaceA contract initially planned to cover various aspects of one single job. Each indivisual aspect is taken as a procedure of which signature you define inside and use it in your class to add functionality inside. They are not to just define method signatures inside and use them later in other classes but to ensure the compactness of given module. If a single step is not performed or missed intentionally or unintensionally, compiler helps remembrize you the step(method) you not performed (overridden). 

More Questions Like This