Skip to content

Abstraction in Java

EWriter edited this page Dec 24, 2021 · 1 revision

Abstraction is a process of hiding the implementation details and showing only functionality to the user. Another way, it shows only essential things to the user and hides the internal details. Abstraction lets you focus on what the object does instead of how it does it.

There are two ways to achieve abstraction in java

Abstract class (0 to 100%)
Interface (100%)

Clone this wiki locally