JAVA8 Abstract Vs Interface

Publié le: 01 janvier 1970
sur la chaîne: codeWithVenky
77
4

A class can have a state which can be modified​
by non-abstract methods but an interface cannot have the state because they can't have instance variables.​

define constructors inside an abstract class, but you cannot define constructors inside an interface in Java.​

By using abstract class you can achieve only single level inheritance while multiple inheritance is possible though Interface​


Sur cette page du site, vous pouvez voir la vidéo en ligne JAVA8 Abstract Vs Interface durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur codeWithVenky 01 janvier 1970, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 77 fois et il a aimé 4 téléspectateurs. Bon visionnage!