+ 1

What is abstraction in programming?

I heard that abstraction is the heart of programming.What is actually abstraction?is it something to do with abstract classes?(Explain with respect to JAVA)

7th Jul 2017, 8:48 AM
Vishnu Vardhan Sistla
Vishnu Vardhan Sistla - avatar
1 Respuesta
+ 2
"Abstraction" as a concept means that you hide unnecessary details from a user/programmer. For example, when you use Math.pow(a, b), then *how* the function works is hidden from you. An abstract class uses a similar concept. You create an abstract class which will just lay the groundwork for its derived classes, i.e. each derived class of an abstract class will have its own different methods and properties. An abstract class carries no details in itself. The *details* are present in its derived classes.
7th Jul 2017, 2:46 PM
Akshay Anurag
Akshay Anurag - avatar