Question d’entretien chez Cisco

interface vs abstract class

Réponse à la question d'entretien

Utilisateur anonyme

21 janv. 2015

Interface is to define the specifications so by default all method of interface are public final and static and all method are public and abstract so for interface the method defination is given by its implementation class but abstract class can contain abstract method as well as concrete method. but you cannot create object of abstract class.

1