Javatpoint Logo
Javatpoint Logo

Data Abstraction in C++

In C++ program if we implement class with private and public members then it is an example of data abstraction.

Let's see the simple example of data abstraction.

Output:

Enter two numbers:
3
6
Sum of two number is: 9
Next TopicC++ Namespaces




Please Share

facebook twitter google plus pinterest tumbler

Learn Latest Tutorials