Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

What is Abstraction in Java? Abstract Class and Interface Example

What Is Abstraction In Java? Abstract Class And Interface Example
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.


This post first appeared on Javarevisited: Blog About Java Programmin, please read the originial post: here

Share the post

What is Abstraction in Java? Abstract Class and Interface Example

×

Subscribe to Javarevisited: Blog About Java Programmin

Get updates delivered right to your inbox!

Thank you for your subscription

×