What is an abstraction in Java?

Java 8Object Oriented ProgrammingProgramming

Abstraction is a process of hiding the implementation details from the user, only the functionality will be provided to the user. In other words, the user will have the information on what the object does instead of how it does it.

In Java, abstraction is achieved using Abstract classes and interfaces.

raja
Updated on 30-Jul-2019 22:30:20

Advertisements