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?
There are two types of modifiers, used to control the access mechanism and provide class functionalities to JVM.
Used to facilitate the encapsulation of components.
#abstraction #interfaces #java