Difference between abstract class and interface

JavaJava Programming Java 8

An abstract class can have instance methods that implement a default behavior. An Interface can only declare constants and instance methods, but cannot implement default behavior and all methods are implicitly abstract. An interface has all public members and no implementation.

raja
Published on 02-Feb-2018 13:16:47
Advertisements