Computer Science, asked by Banku3917, 1 year ago

What are the Example of data abstraction?

Answers

Answered by pranu21
1


Abstraction in C++


Data abstraction is one of the most essential and important feature of object oriented programming in C++. Abstraction means displaying only essential information and hiding the details. Data abstraction refers to providing only essential information about the data to the outside world, hiding the background details or implementation.

Consider a real life example of a man driving a car. The man only knows that pressing the accelerators will increase the speed of car or applying brakes will stop the car but he does not know about how on pressing accelerator the speed is actually increasing, he does not know about the inner mechanism of the car or the implementation of accelerator, brakes etc in the car. This is what abstraction is.

Answered by SohamKundu012
0

Data hiding means restriction of accessibility of data .

Data abstraction means representation of essential things without details .

Both are features of OOP .

Similar questions