Data abstraction is accomplished with the help of abstract methods or abstract classes.
Types of Abstraction:
-
Procedural abstraction – It includes series of the instructions having the specified functions.
-
Data abstraction – It is set of data that specifies and describes a data object.
Data types in programming languages is the best data abstraction example. boolean data type abstracts single bit data within it.
- Control abstraction – It is program control mechanism where interior details are not specified.