Pregunta de entrevista de ITSP

Different between Abstract class and Interface

Respuesta de la entrevista

Anónimo

9 de abr de 2012

1) abstract class code is reusable ,this is not in the case of interface. 2) in interface all the methods are by default abstract as well as public. 3)we can have concrete methods also in abstract class,this is not valid in interface 4)declared variables in interface by default public,static,final.this is not in the case of abstract class