ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

مستخدم محذوف‎
من قبل مستخدم محذوف‎

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
من قبل 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
من قبل 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). 

المزيد من الأسئلة المماثلة