Anonymous

What Are The Advantages And Disadvantages Of Abstraction In Java?

2

2 Answers

Ravikumar venkataramani Profile
As of now I don't see any disadvantages of abstraction. First you should understand what is abstraction for that?

It is concept in the OOP(Object oriented Programming). Abstraction is nothing but data hiding. But concepts in OOP such as abstraction,encapsulation are inter-related and you cannot separate them.

When you write a class in java, means you are encapsulating the variables declared in that class. When you access classes via interfaces, it is a way of abstraction.

Answer Question

Anonymous