Menu

Post image 1
Post image 2
1 / 2
0

Abstraction in Java

DEV Community·Sakthi S·20 days ago
#zad5IDOA
Reading 0:00
15s threshold

Sakthi S

  • Abstraction in Java is the process of hiding internal implementation details and showing only essential functionality to the user.

Java provides two ways to implement abstraction, which are listed below:

  • Abstract Classes

  • Interface

Advantages of Abstraction

  • Abstraction makes complex systems easier to understand by hiding the implementation details.
    
  • Abstraction keeps different part of the system separated.
    
  • Abstraction maintains code more efficiently.
    
  • Abstraction increases the security by only showing the necessary details to the user.
    

Advantages of Abstraction

  • Abstraction makes complex systems easier to understand by hiding the implementation details.
    
  • Abstraction keeps different part of the system separated.
    
  • Abstraction maintains code more efficiently.
    
  • Abstraction increases the security by only showing the necessary details to the user.
    
Read More