What is abstraction?
Abstraction in Java or Object-oriented programming is a way to segregate implementation from an interface and one of the five fundamentals along with Encapsulation, Inheritance, Polymorphism, Class, and Object. Abstraction in Java is achieved by using the interface and Abstract Class in Java. An interface or abstract class is something that is not concrete, something which is incomplete. In order to use interface or abstract class, we need to extend and implement an abstract method with concrete behavior.
Related Articles
This post first appeared on Javarevisited: Blog About Java Programmin, please read the originial post: here