Interface in Java

Interface in Java helps to fully abstract the implementation of the class. Interfaces provide a contract for the class, just providing how the class methods will be accessed by any outside entity without actually providing what methods should do. The class implementing an interface has to provide the behavior (implement…

Continue reading

Abstract Class in Java

Abstract class in Java is a class that is declared using abstract keyword. Abstract class can have regular methods (methods with method body) as well as abstract methods (methods without method body and having abstract specifier). General form of abstract class in Java When is abstract class needed When designing…

Continue reading