Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

What is interface?

user-image
Question ajoutée par Viswanath telagamsetty , trainee , niit
Date de publication: 2013/10/31
Utilisateur supprimé
par Utilisateur supprimé

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
par 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
par 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