What do you mean by abstract and data abstraction in c++ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What do you mean by abstract and data abstraction in c++

How to solve that problems? How much technique.

6th Dec 2018, 12:50 PM
Satyendra Patel
Satyendra Patel - avatar
2 Answers
+ 9
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.
6th Dec 2018, 3:02 PM
AKS
AKS - avatar