Abstraction in java with example

Abstraction is a concept of exposing only essential details and hiding implementation details. You can achieve abstraction using two ways in java. Abstract class(0 to 100% abstraction) Interface (100% abstraction) For example: When you search …

Interface in java with example

In previous post, we have seen abstract class in java which provides partial abstraction. Interface is one of the core part of java and is used to achieve full abstraction. Interface is generally used to …

Abstract class in java

An abstract class is the class which is declared abstract and can have abstract or non abstract methods. An abstract class can not be instantiated. It can be extended by subclass to implement abstract methods …