In previous articles, we discussed Inheritance, Polymorphism, and Encapsulation. You can get the idea of OOP concepts by going through those articles. Today we are going to discuss another vital OOP concept called Abstract Classes and methods in Java.

Abstract class vs Interface

The abstraction of data is the process of hiding certain information and showing only essential information to the user. Abstraction can be achieved with abstract classes as well as interfaces. abstract the keyword that we are using is a non-access modifier. What are modifiers?

Modifiers

There are two types of modifiers, used to control the access mechanism and provide class functionalities to JVM.

  1. Access modifiers

Used to facilitate the encapsulation of components.

  • public
  • private
  • protected

#abstraction #interfaces #java

Abstract Classes Java
1.10 GEEK